mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-12-22 19:31:10 +00:00
terminate when suspending if no disks are inserted
This commit is contained in:
parent
671edf8bc0
commit
65d505bfb5
@ -21,6 +21,7 @@ IMPORTPROC SetMouseLoc(ui4r h, ui4r v);
|
|||||||
IMPORTPROC SetMouseDelta(ui4r dh, ui4r dv);
|
IMPORTPROC SetMouseDelta(ui4r dh, ui4r dv);
|
||||||
IMPORTFUNC blnr Sony_Insert1(NSString *filePath, blnr silentfail);
|
IMPORTFUNC blnr Sony_Insert1(NSString *filePath, blnr silentfail);
|
||||||
IMPORTFUNC blnr Sony_IsInserted(NSString *filePath);
|
IMPORTFUNC blnr Sony_IsInserted(NSString *filePath);
|
||||||
|
IMPORTFUNC blnr AnyDiskInserted(void);
|
||||||
EXPORTVAR(ui3b,SpeedValue);
|
EXPORTVAR(ui3b,SpeedValue);
|
||||||
IMPORTPROC SetKeyState(int key, blnr down);
|
IMPORTPROC SetKeyState(int key, blnr down);
|
||||||
IMPORTPROC MacInterrupt();
|
IMPORTPROC MacInterrupt();
|
||||||
@ -77,6 +78,9 @@ NSString * const MNVMDidEjectDiskNotification = @"MNVMDidEjectDisk";
|
|||||||
|
|
||||||
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
||||||
self.emulatorRunning = NO;
|
self.emulatorRunning = NO;
|
||||||
|
if (AnyDiskInserted() == falseblnr) {
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
||||||
|
Loading…
Reference in New Issue
Block a user