Migration code for users updating to the 1.1.3 iPhone firmware, which has a different directory structure and permission setup

svn-id: r30761
This commit is contained in:
Oystein Eftevaag
2008-02-03 12:36:51 +00:00
parent c098453ea1
commit deb6baf0db
4 changed files with 68 additions and 8 deletions
+6 -4
View File
@@ -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