diff options
author | Didier 'OdyX' Raboud <didier@raboud.com> | 2013-12-09 09:51:56 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-12-09 17:39:39 +0100 |
commit | 114cbec8a9859f19d4234659bd4951f540825dd3 (patch) | |
tree | 9725d6a41b8321bb2868c4ea88801b6d2871f493 /src | |
parent | dae8d8738908a65a4ee4ef14d88681e196825126 (diff) | |
download | colobot-114cbec8a9859f19d4234659bd4951f540825dd3.tar.gz colobot-114cbec8a9859f19d4234659bd4951f540825dd3.tar.bz2 colobot-114cbec8a9859f19d4234659bd4951f540825dd3.zip |
Never cache Data, Sound and Music paths
Let them always be either auto-detected, defined on the command-line
or written in the configuration file
Diffstat (limited to 'src')
-rw-r--r-- | src/app/app.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 09fb233..d332931 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -423,11 +423,6 @@ bool CApplication::Create() return false; } -#if !defined(PLATFORM_MACOSX) - // On Mac OSX, the bundle can potentially change place, it doesn't make sense to cache it to the configuration file - GetProfile().SetLocalProfileString("Resources", "Data", m_dataPath); -#endif - SetLanguage(m_language); //Create the sound instance. @@ -440,17 +435,6 @@ bool CApplication::Create() m_sound->Create(true); -#if !defined(PLATFORM_MACOSX) - // On Mac OSX, the bundle can potentially change place, it doesn't make sense to cache it to the configuration file - - // Cache sound files - if (defaultValues) - { - GetProfile().SetLocalProfileString("Resources", "Sound", GetDataSubdirPath(DIR_SOUND)); - GetProfile().SetLocalProfileString("Resources", "Music", GetDataSubdirPath(DIR_MUSIC)); - } -#endif - if (!m_customDataPath && GetProfile().GetLocalProfileString("Resources", "Sound", path)) { m_sound->CacheAll(path); |