aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone
diff options
context:
space:
mode:
authorVincent Bénony2015-12-03 12:42:02 +0100
committerVincent Bénony2016-01-06 16:17:31 +0100
commit4713f7680212c9448857922e4fbd4c0c7dfa9e92 (patch)
treec901df1e0f50d89648e5a36460ba0ea4bfe3ac0e /backends/platform/iphone
parente9934b8cc446b42c2b701a2971bdcc1b5047164f (diff)
downloadscummvm-rg350-4713f7680212c9448857922e4fbd4c0c7dfa9e92.tar.gz
scummvm-rg350-4713f7680212c9448857922e4fbd4c0c7dfa9e92.tar.bz2
scummvm-rg350-4713f7680212c9448857922e4fbd4c0c7dfa9e92.zip
IOS: Clean the path of the Savegames directory
Diffstat (limited to 'backends/platform/iphone')
-rw-r--r--backends/platform/iphone/iphone_main.mm4
-rw-r--r--backends/platform/iphone/osys_main.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/iphone/iphone_main.mm b/backends/platform/iphone/iphone_main.mm
index d32196090c..02d46c1995 100644
--- a/backends/platform/iphone/iphone_main.mm
+++ b/backends/platform/iphone/iphone_main.mm
@@ -94,12 +94,14 @@ int main(int argc, char **argv) {
CGRect rect = [[UIScreen mainScreen] bounds];
// Create the directory for savegames
+#ifdef IPHONE_OFFICIAL
NSFileManager *fm = [NSFileManager defaultManager];
NSString *documentPath = [NSString stringWithUTF8String:iPhone_getDocumentsDir()];
- NSString *savePath = [documentPath stringByAppendingPathComponent:@"savegames"];
+ NSString *savePath = [documentPath stringByAppendingPathComponent:@"Savegames"];
if (![fm fileExistsAtPath:savePath]) {
[fm createDirectoryAtPath:savePath withIntermediateDirectories:YES attributes:nil error:nil];
}
+#endif
_window = [[UIWindow alloc] initWithFrame:rect];
[_window retain];
diff --git a/backends/platform/iphone/osys_main.cpp b/backends/platform/iphone/osys_main.cpp
index c1b55c297e..ef3499d597 100644
--- a/backends/platform/iphone/osys_main.cpp
+++ b/backends/platform/iphone/osys_main.cpp
@@ -101,7 +101,7 @@ int OSystem_IPHONE::timerHandler(int t) {
void OSystem_IPHONE::initBackend() {
#ifdef IPHONE_OFFICIAL
- _savefileManager = new DefaultSaveFileManager("/savegames");
+ _savefileManager = new DefaultSaveFileManager("/Savegames");
#else
_savefileManager = new DefaultSaveFileManager(SCUMMVM_SAVE_PATH);
#endif