equal
deleted
inserted
replaced
34 UIButton *theButton = (UIButton *)sender; |
34 UIButton *theButton = (UIButton *)sender; |
35 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; |
35 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; |
36 |
36 |
37 if (theButton.tag != 0) { |
37 if (theButton.tag != 0) { |
38 [AudioManagerController playClickSound]; |
38 [AudioManagerController playClickSound]; |
39 [[NSNotificationCenter defaultCenter] postNotificationName:@"launchRestoredGame" object:nil]; |
39 [GameInterfaceBridge registerCallingController:self.parentViewController]; |
|
40 [GameInterfaceBridge startSaveGame:[[NSUserDefaults standardUserDefaults] objectForKey:@"savedGamePath"]]; |
40 } else { |
41 } else { |
41 [AudioManagerController playBackSound]; |
42 [AudioManagerController playBackSound]; |
42 [defaults setObject:@"" forKey:@"savedGamePath"]; |
43 [defaults setObject:@"" forKey:@"savedGamePath"]; |
43 [defaults synchronize]; |
44 [defaults synchronize]; |
44 } |
45 } |