From 4713f7680212c9448857922e4fbd4c0c7dfa9e92 Mon Sep 17 00:00:00 2001 From: Vincent Bénony Date: Thu, 3 Dec 2015 12:42:02 +0100 Subject: IOS: Clean the path of the Savegames directory --- backends/platform/iphone/iphone_main.mm | 4 +++- backends/platform/iphone/osys_main.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'backends/platform') 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 -- cgit v1.2.3