From 114cbec8a9859f19d4234659bd4951f540825dd3 Mon Sep 17 00:00:00 2001 From: Didier 'OdyX' Raboud Date: Mon, 9 Dec 2013 09:51:56 +0100 Subject: 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 --- src/app/app.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/app') 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); -- cgit v1.2.3-1-g7c22