equal
deleted
inserted
replaced
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; |