mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Fix SoundEngine on Mac
This commit is contained in:
parent
acd18986b2
commit
e3cc4eda3b
1 changed files with 8 additions and 9 deletions
|
|
@ -110,15 +110,14 @@ QStringMap &SoundEngine::getAvailableThemes()
|
|||
}
|
||||
|
||||
// load themes from cockatrice system dir
|
||||
// dir.setPath(qApp->applicationDirPath() +
|
||||
//#ifdef Q_OS_MAC
|
||||
// "/../Resources/sounds"
|
||||
//#elif defined(Q_OS_WIN)
|
||||
// "/sounds"
|
||||
//#else // linux
|
||||
// "/../share/cockatrice/sounds"
|
||||
//#endif
|
||||
dir.setPath("/Applications/Cockatrice.app/Contents/Resources/sounds"
|
||||
dir.setPath(qApp->applicationDirPath() +
|
||||
#ifdef Q_OS_MAC
|
||||
"/../Resources/sounds"
|
||||
#elif defined(Q_OS_WIN)
|
||||
"/sounds"
|
||||
#else // linux
|
||||
"/../share/cockatrice/sounds"
|
||||
#endif
|
||||
);
|
||||
|
||||
for (const QString &themeName : dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue