equal
deleted
inserted
replaced
35 UIButton *theButton = (UIButton *)sender; |
35 UIButton *theButton = (UIButton *)sender; |
36 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; |
36 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; |
37 |
37 |
38 if (theButton.tag != 0) { |
38 if (theButton.tag != 0) { |
39 if (self.interfaceBridge == nil) { |
39 if (self.interfaceBridge == nil) { |
40 GameInterfaceBridge *bridge = [[GameInterfaceBridge alloc] initWithController:self]; |
40 GameInterfaceBridge *bridge = [[GameInterfaceBridge alloc] initWithController:self.parentViewController]; |
41 self.interfaceBridge = bridge; |
41 self.interfaceBridge = bridge; |
42 [bridge release]; |
42 [bridge release]; |
43 } |
43 } |
44 [self.parentViewController dismissModalViewControllerAnimated:NO]; |
44 [self.parentViewController dismissModalViewControllerAnimated:NO]; |
45 [self.interfaceBridge startSaveGame:[defaults objectForKey:@"savedGamePath"]]; |
45 [self.interfaceBridge startSaveGame:[defaults objectForKey:@"savedGamePath"]]; |