aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOystein Eftevaag2009-03-01 09:05:48 +0000
committerOystein Eftevaag2009-03-01 09:05:48 +0000
commit99df3ccd73962a5ae8f85e212c6fcfcfb14010c6 (patch)
tree986c28f16b684c4061eb546bd9574ec9920bad29
parentb9a5562ab85bacd60fb371b97038e8d1915b7f06 (diff)
downloadscummvm-rg350-99df3ccd73962a5ae8f85e212c6fcfcfb14010c6.tar.gz
scummvm-rg350-99df3ccd73962a5ae8f85e212c6fcfcfb14010c6.tar.bz2
scummvm-rg350-99df3ccd73962a5ae8f85e212c6fcfcfb14010c6.zip
When built with the xcode project, the file browser will now start browing for files inside the application bundle directory
svn-id: r39022
-rw-r--r--backends/platform/iphone/osys_iphone.cpp6
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);