diff options
author | Oystein Eftevaag | 2008-02-03 12:36:51 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2008-02-03 12:36:51 +0000 |
commit | deb6baf0dbeb5e08dba6bf66d70cee07d7c22d4f (patch) | |
tree | 1690427b48159bf92fbebe392dee3c88c4f9c874 /base | |
parent | c098453ea199ff4476bd3ada90200e2b90f4de58 (diff) | |
download | scummvm-rg350-deb6baf0dbeb5e08dba6bf66d70cee07d7c22d4f.tar.gz scummvm-rg350-deb6baf0dbeb5e08dba6bf66d70cee07d7c22d4f.tar.bz2 scummvm-rg350-deb6baf0dbeb5e08dba6bf66d70cee07d7c22d4f.zip |
Migration code for users updating to the 1.1.3 iPhone firmware, which has a different directory structure and permission setup
svn-id: r30761
Diffstat (limited to 'base')
-rw-r--r-- | base/commandLine.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index da8356acff..856ac9e173 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -35,6 +35,10 @@ #include "sound/mididrv.h" #include "sound/mixer.h" +#ifdef IPHONE +#include "backends/platform/iphone/osys_iphone.h" +#endif + #ifdef UNIX #ifdef MACOSX #define DEFAULT_SAVE_PATH "Documents/ScummVM Savegames" @@ -224,10 +228,8 @@ void registerDefaults() { strcpy(savePath, Symbian::GetExecutablePath()); strcat(savePath, DEFAULT_SAVE_PATH); ConfMan.registerDefault("savepath", savePath); -#elif defined (IPHONE) // The iphone has / set as home dir when launching from the Springboard. - strcpy(savePath, "/var/root/"); - strcat(savePath, DEFAULT_SAVE_PATH); - ConfMan.registerDefault("savepath", savePath); +#elif defined (IPHONE) + ConfMan.registerDefault("savepath", OSystem_IPHONE::getSavePath()); #endif #endif // #ifdef DEFAULT_SAVE_PATH |