mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
sound themes
This commit is contained in:
parent
226a8cc017
commit
85aa866e02
22 changed files with 132 additions and 72 deletions
|
|
@ -191,20 +191,6 @@ int main(int argc, char *argv[])
|
|||
qDebug() << "Could not create " + dataDir + "/customsets folder.";
|
||||
}
|
||||
|
||||
if(settingsCache->getSoundPath().isEmpty() || !QDir(settingsCache->getSoundPath()).exists())
|
||||
{
|
||||
QDir tmpDir;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
tmpDir = app.applicationDirPath() + "/../Resources/sounds";
|
||||
#elif defined(Q_OS_WIN)
|
||||
tmpDir = app.applicationDirPath() + "/sounds";
|
||||
#else // linux
|
||||
tmpDir = app.applicationDirPath() + "/../share/cockatrice/sounds/";
|
||||
#endif
|
||||
settingsCache->setSoundPath(tmpDir.canonicalPath());
|
||||
}
|
||||
|
||||
if (!settingsValid() || db->getLoadStatus() != Ok) {
|
||||
qDebug("main(): invalid settings or load status");
|
||||
DlgSettings dlgSettings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue