aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ios7
diff options
context:
space:
mode:
authorVincent Bénony2016-01-07 09:51:13 +0100
committerVincent Bénony2016-01-07 09:55:56 +0100
commitb5ef98637c54a453a6f0ac0ca8c501ceb59924d5 (patch)
tree4b260685b5aaaab51e097cb8e220a5a12aea115b /backends/platform/ios7
parenta4f9b9e2ae4a6a228eed68423168336b990bbc61 (diff)
downloadscummvm-rg350-b5ef98637c54a453a6f0ac0ca8c501ceb59924d5.tar.gz
scummvm-rg350-b5ef98637c54a453a6f0ac0ca8c501ceb59924d5.tar.bz2
scummvm-rg350-b5ef98637c54a453a6f0ac0ca8c501ceb59924d5.zip
IOS: Renames a macro
Diffstat (limited to 'backends/platform/ios7')
-rw-r--r--backends/platform/ios7/iOS7AppDelegate.mm2
-rw-r--r--backends/platform/ios7/ios7_osys_main.cpp15
2 files changed, 8 insertions, 9 deletions
diff --git a/backends/platform/ios7/iOS7AppDelegate.mm b/backends/platform/ios7/iOS7AppDelegate.mm
index d664f91ccc..e9908ec146 100644
--- a/backends/platform/ios7/iOS7AppDelegate.mm
+++ b/backends/platform/ios7/iOS7AppDelegate.mm
@@ -32,8 +32,8 @@
- (void)applicationDidFinishLaunching:(UIApplication *)application {
CGRect rect = [[UIScreen mainScreen] bounds];
+#ifdef IPHONE_SANDBOXED
// Create the directory for savegames
-#ifdef IPHONE_OFFICIAL
NSFileManager *fm = [NSFileManager defaultManager];
NSString *documentPath = [NSString stringWithUTF8String:iOS7_getDocumentsDir()];
NSString *savePath = [documentPath stringByAppendingPathComponent:@"Savegames"];
diff --git a/backends/platform/ios7/ios7_osys_main.cpp b/backends/platform/ios7/ios7_osys_main.cpp
index d6b9ce3741..37fa34ce33 100644
--- a/backends/platform/ios7/ios7_osys_main.cpp
+++ b/backends/platform/ios7/ios7_osys_main.cpp
@@ -88,7 +88,7 @@ OSystem_iOS7::OSystem_iOS7() :
_lastErrorMessage(NULL), _mouseCursorPaletteEnabled(false), _gfxTransactionError(kTransactionSuccess) {
_queuedInputEvent.type = Common::EVENT_INVALID;
_touchpadModeEnabled = !iOS7_isBigDevice();
-#ifdef IPHONE_OFFICIAL
+#ifdef IPHONE_SANDBOXED
_fsFactory = new ChRootFilesystemFactory(iOS7_getDocumentsDir());
#else
_fsFactory = new POSIXFilesystemFactory();
@@ -123,7 +123,7 @@ int OSystem_iOS7::timerHandler(int t) {
}
void OSystem_iOS7::initBackend() {
-#ifdef IPHONE_OFFICIAL
+#ifdef IPHONE_SANDBOXED
_savefileManager = new DefaultSaveFileManager("/Savegames");
#else
_savefileManager = new DefaultSaveFileManager(SCUMMVM_SAVE_PATH);
@@ -282,7 +282,7 @@ OSystem_iOS7 *OSystem_iOS7::sharedInstance() {
}
Common::String OSystem_iOS7::getDefaultConfigFileName() {
-#ifdef IPHONE_OFFICIAL
+#ifdef IPHONE_SANDBOXED
Common::String path = "/Preferences";
return path;
#else
@@ -299,13 +299,12 @@ void OSystem_iOS7::addSysArchivesToSearchSet(Common::SearchSet &s, int priority)
if (CFURLGetFileSystemRepresentation(fileUrl, true, buf, sizeof(buf))) {
// Success: Add it to the search path
Common::String bundlePath((const char *)buf);
-#ifdef IPHONE_OFFICIAL
+#ifdef IPHONE_SANDBOXED
POSIXFilesystemNode *posixNode = new POSIXFilesystemNode(bundlePath);
Common::FSNode *node = new Common::FSNode(posixNode);
- s.add("__OSX_BUNDLE__", new Common::FSDirectory(*node), priority);
+ s.add("__IOS_BUNDLE__", new Common::FSDirectory(*node), priority);
#else
- // OS X
- s.add("__OSX_BUNDLE__", new Common::FSDirectory(bundlePath), priority);
+ s.add("__IOS_BUNDLE__", new Common::FSDirectory(bundlePath), priority);
#endif
}
CFRelease(fileUrl);
@@ -351,7 +350,7 @@ void iOS7_main(int argc, char **argv) {
//gDebugLevel = 10;
}
-#ifdef IPHONE_OFFICIAL
+#ifdef IPHONE_SANDBOXED
chdir(iOS7_getDocumentsDir());
#else
system("mkdir " SCUMMVM_ROOT_PATH);