diff options
-rw-r--r-- | backends/platform/iphone/osys_iphone.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp index 756d42493e..d11392e953 100644 --- a/backends/platform/iphone/osys_iphone.cpp +++ b/backends/platform/iphone/osys_iphone.cpp @@ -1408,8 +1408,12 @@ void iphone_main(int argc, char *argv[]) { system("mkdir " SCUMMVM_ROOT_PATH); system("mkdir " SCUMMVM_SAVE_PATH); +#ifdef IPHONE_OFFICIAL + chdir( iPhone_getDocumentsDir() ); +#else chdir("/var/mobile/"); - +#endif + g_system = OSystem_IPHONE_create(); assert(g_system); |