mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-06-08 11:32:36 +00:00
fix: stop emulation when SpeedStopped is true
This commit is contained in:
parent
a26fe3fef6
commit
90f6f77f8b
|
@ -1585,11 +1585,11 @@ LOCALPROC EnterSpeedStopped(void) {
|
|||
}
|
||||
|
||||
GLOBALFUNC blnr GetSpeedStopped(void) {
|
||||
return CurSpeedStopped;
|
||||
return SpeedStopped;
|
||||
}
|
||||
|
||||
GLOBALPROC SetSpeedStopped(blnr stopped) {
|
||||
CurSpeedStopped = stopped;
|
||||
SpeedStopped = stopped;
|
||||
}
|
||||
|
||||
LOCALPROC MacMsgDisplayOn() {
|
||||
|
@ -1704,6 +1704,7 @@ GLOBALFUNC blnr ExtraTimeNotOver(void) {
|
|||
GLOBALPROC WaitForNextTick(void) {
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
NSRunLoop *mainRunLoop = [NSRunLoop mainRunLoop];
|
||||
label_retry:
|
||||
while (ExtraTimeNotOver()) {
|
||||
[mainRunLoop runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceReferenceDate:NextTickChangeTime]];
|
||||
}
|
||||
|
@ -1716,6 +1717,7 @@ GLOBALPROC WaitForNextTick(void) {
|
|||
|
||||
if (CurSpeedStopped) {
|
||||
DoneWithDrawingForTick();
|
||||
goto label_retry;
|
||||
}
|
||||
|
||||
if (CheckDateTime()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user