all repos — mgba @ a7357df857cf775d339fbc24fd56de3f1be4fba2

mGBA Game Boy Advance Emulator

GBA Thread: Interrupting should halt the emulation as soon as possible
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Jan 2015 00:32:56 -0800
commit

a7357df857cf775d339fbc24fd56de3f1be4fba2

parent

acb510619f75b27db538df5e7c6eb5f2d178f745

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -485,6 +485,7 @@ }

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