project_files/HedgewarsMobile/Classes/MainMenuViewController.m
branchios-revival
changeset 11102 87ca80dbb141
parent 10108 c68cf030eded
child 11116 102684240fe8
--- 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];