project_files/HedgewarsMobile/Classes/RestoreViewController.m
changeset 5668 36c1d1b789b8
parent 5666 cc79eb30346e
child 5699 1a9a6a7662aa
equal deleted inserted replaced
5666:cc79eb30346e 5668:36c1d1b789b8
    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"]];