From deb6baf0dbeb5e08dba6bf66d70cee07d7c22d4f Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Sun, 3 Feb 2008 12:36:51 +0000 Subject: Migration code for users updating to the 1.1.3 iPhone firmware, which has a different directory structure and permission setup svn-id: r30761 --- common/config-manager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/config-manager.cpp b/common/config-manager.cpp index ef2a01bba6..0f3bc51579 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -39,6 +39,10 @@ DECLARE_SINGLETON(Common::ConfigManager); #include "backends/platform/ps2/systemps2.h" #endif +#ifdef IPHONE +#include "backends/platform/iphone/osys_iphone.h" +#endif + #if defined(UNIX) #ifdef MACOSX #define DEFAULT_CONFIG_FILE "Library/Preferences/ScummVM Preferences" @@ -138,7 +142,7 @@ void ConfigManager::loadDefaultConfigFile() { #elif defined(PALMOS_MODE) strcpy(configFile,"/PALM/Programs/ScummVM/" DEFAULT_CONFIG_FILE); #elif defined(IPHONE) - strcpy(configFile,"/var/root/" DEFAULT_CONFIG_FILE); + strcpy(configFile, OSystem_IPHONE::getConfigPath()); #elif defined(__PLAYSTATION2__) ((OSystem_PS2*)g_system)->makeConfigPath(configFile); #elif defined(__PSP__) -- cgit v1.2.3