Fix SoundEngine on Mac

This commit is contained in:
ZeldaZach 2025-01-10 22:19:46 -05:00
parent acd18986b2
commit e3cc4eda3b
No known key found for this signature in database

View file

@ -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)) {