From 99df3ccd73962a5ae8f85e212c6fcfcfb14010c6 Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Sun, 1 Mar 2009 09:05:48 +0000 Subject: [PATCH] When built with the xcode project, the file browser will now start browing for files inside the application bundle directory svn-id: r39022 --- backends/platform/iphone/osys_iphone.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp index 756d42493ec..d11392e9532 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);