mirror of https://github.com/mgba-emu/mgba.git
GBA Thread: Interrupting should halt the emulation as soon as possible
This commit is contained in:
parent
acb510619f
commit
a7357df857
|
@ -485,6 +485,7 @@ void GBAThreadInterrupt(struct GBAThread* threadContext) {
|
|||
threadContext->savedState = threadContext->state;
|
||||
_waitOnInterrupt(threadContext);
|
||||
threadContext->state = THREAD_INTERRUPTING;
|
||||
threadContext->gba->cpu->nextEvent = 0;
|
||||
if (threadContext->debugger && threadContext->debugger->state == DEBUGGER_RUNNING) {
|
||||
threadContext->debugger->state = DEBUGGER_EXITING;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue