project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 5224 6e8fbbfb0de5
parent 5220 76a2246f18f0
child 5483 fc755bb8096d
equal deleted inserted replaced
5223:5730238e7ee6 5224:6e8fbbfb0de5
   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];