project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6866 efdd2e4fc45c
parent 6865 fe19af8278e6
child 6869 a187c280dd3d
equal deleted inserted replaced
6865:fe19af8278e6 6866:efdd2e4fc45c
    59         [CreationChamber createFirstLaunch];
    59         [CreationChamber createFirstLaunch];
    60     }
    60     }
    61 
    61 
    62     // prompt for restoring any previous game
    62     // prompt for restoring any previous game
    63     NSString *saveString = [userDefaults objectForKey:@"savedGamePath"];
    63     NSString *saveString = [userDefaults objectForKey:@"savedGamePath"];
    64     if (saveString != nil && [saveString isEqualToString:@""] == NO) {
    64     if (saveString != nil && [saveString isEqualToString:@""] == NO && [[userDefaults objectForKey:@"saveIsValid"] boolValue]) {
    65         if (self.restoreViewController == nil) {
    65         if (self.restoreViewController == nil) {
    66             NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")];
    66             NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")];
    67             RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil];
    67             RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil];
    68             if ([restored respondsToSelector:@selector(setModalPresentationStyle:)])
    68             if ([restored respondsToSelector:@selector(setModalPresentationStyle:)])
    69                 restored.modalPresentationStyle = UIModalPresentationFormSheet;
    69                 restored.modalPresentationStyle = UIModalPresentationFormSheet;