GBA Thread: Interrupting should halt the emulation as soon as possible

This commit is contained in:
Jeffrey Pfau 2015-01-24 00:32:56 -08:00
parent acb510619f
commit a7357df857
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}