mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -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
|
// load themes from cockatrice system dir
|
||||||
// dir.setPath(qApp->applicationDirPath() +
|
dir.setPath(qApp->applicationDirPath() +
|
||||||
//#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
// "/../Resources/sounds"
|
"/../Resources/sounds"
|
||||||
//#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
// "/sounds"
|
"/sounds"
|
||||||
//#else // linux
|
#else // linux
|
||||||
// "/../share/cockatrice/sounds"
|
"/../share/cockatrice/sounds"
|
||||||
//#endif
|
#endif
|
||||||
dir.setPath("/Applications/Cockatrice.app/Contents/Resources/sounds"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
for (const QString &themeName : dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name)) {
|
for (const QString &themeName : dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot, QDir::Name)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue