- Restore game functionality disabled, because it blocks main screen ios-revival
authorantonc27 <antonc27@mail.ru>
Mon, 10 Aug 2015 22:44:51 +0200
branchios-revival
changeset 11102 87ca80dbb141
parent 11101 62b82de0d6b9
child 11103 4f526dcb40db
- Restore game functionality disabled, because it blocks main screen Note: Uncomment this after
project_files/HedgewarsMobile/Classes/MainMenuViewController.m
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sun Aug 09 16:20:35 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Mon Aug 10 22:44:51 2015 +0200
@@ -60,22 +60,22 @@
         [CreationChamber createFirstLaunch];
     }
 
-    // prompt for restoring any previous game
-    NSString *saveString = [userDefaults objectForKey:@"savedGamePath"];
-    if (saveString != nil && [saveString isEqualToString:@""] == NO && [[userDefaults objectForKey:@"saveIsValid"] boolValue]) {
-        if (self.restoreViewController == nil) {
-            NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")];
-            RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil];
-            if ([restored respondsToSelector:@selector(setModalPresentationStyle:)])
-                restored.modalPresentationStyle = UIModalPresentationFormSheet;
-            self.restoreViewController = restored;
-            [restored release];
-        }
-        [self performSelector:@selector(presentModalViewController:animated:) withObject:self.restoreViewController afterDelay:0.25];
-    } else {
-        // let's not prompt for rating when app crashed >_>
-        [Appirater appLaunched];
-    }
+//    // prompt for restoring any previous game
+//    NSString *saveString = [userDefaults objectForKey:@"savedGamePath"];
+//    if (saveString != nil && [saveString isEqualToString:@""] == NO && [[userDefaults objectForKey:@"saveIsValid"] boolValue]) {
+//        if (self.restoreViewController == nil) {
+//            NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")];
+//            RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil];
+//            if ([restored respondsToSelector:@selector(setModalPresentationStyle:)])
+//                restored.modalPresentationStyle = UIModalPresentationFormSheet;
+//            self.restoreViewController = restored;
+//            [restored release];
+//        }
+//        [self performSelector:@selector(presentModalViewController:animated:) withObject:self.restoreViewController afterDelay:0.25];
+//    } else {
+//        // let's not prompt for rating when app crashed >_>
+//        [Appirater appLaunched];
+//    }
 
     /*
     [ServerProtocolNetwork openServerConnection];