equal
deleted
inserted
replaced
105 [userDefaults setObject:version forKey:@"HedgeVersion"]; |
105 [userDefaults setObject:version forKey:@"HedgeVersion"]; |
106 [userDefaults synchronize]; |
106 [userDefaults synchronize]; |
107 [self createNecessaryFiles]; |
107 [self createNecessaryFiles]; |
108 } |
108 } |
109 |
109 |
|
110 if ([[userDefaults objectForKey:@"music"] boolValue]) |
|
111 [HedgewarsAppDelegate playBackgroundMusic]; |
|
112 |
110 NSString *saveString = [[NSUserDefaults standardUserDefaults] objectForKey:@"savedGamePath"]; |
113 NSString *saveString = [[NSUserDefaults standardUserDefaults] objectForKey:@"savedGamePath"]; |
111 if (saveString != nil && [saveString isEqualToString:@""] == NO) { |
114 if (saveString != nil && [saveString isEqualToString:@""] == NO) { |
112 if (self.restoreViewController == nil) { |
115 if (self.restoreViewController == nil) { |
113 NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")]; |
116 NSString *xibName = [@"RestoreViewController-" stringByAppendingString:(IS_IPAD() ? @"iPad" : @"iPhone")]; |
114 RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil]; |
117 RestoreViewController *restored = [[RestoreViewController alloc] initWithNibName:xibName bundle:nil]; |