sync defaults when backgrounding (for iOS 7)

This commit is contained in:
Jesús A. Álvarez 2016-05-29 00:30:38 +02:00
parent 38c6a81ed4
commit e83ce3238b
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ static NSObject<Emulator> *sharedEmulator = nil;
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
[[NSUserDefaults standardUserDefaults] synchronize];
sharedEmulator.running = NO;
if (sharedEmulator.anyDiskInserted == NO) {
exit(0);