pause emulator when settings screen is visible

This commit is contained in:
Jesús A. Álvarez 2016-05-14 14:04:54 +02:00
parent ac333642fd
commit 5f236b2a29

View File

@ -23,6 +23,16 @@
keyboardLayouts = [[NSBundle mainBundle] pathsForResourcesOfType:@"nfkeyboardlayout" inDirectory:@"Keyboard Layouts"]; keyboardLayouts = [[NSBundle mainBundle] pathsForResourcesOfType:@"nfkeyboardlayout" inDirectory:@"Keyboard Layouts"];
} }
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[AppDelegate sharedInstance].emulatorRunning = NO;
}
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[AppDelegate sharedInstance].emulatorRunning = YES;
}
- (void)showInsertDisk:(id)sender { - (void)showInsertDisk:(id)sender {
[[AppDelegate sharedInstance] showInsertDisk:sender]; [[AppDelegate sharedInstance] showInsertDisk:sender];
} }