project_files/HedgewarsMobile/Classes/RestoreViewController.m
changeset 6353 d8f62c805619
parent 6321 5a0416e5a6de
child 6700 e04da46ee43c
equal deleted inserted replaced
6352:2448f5390bd5 6353:d8f62c805619
    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     }