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

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);