GBA Thread: Allow halted games to exit cleanly
Jeffrey Pfau jeffrey@endrift.com
Tue, 16 Dec 2014 22:36:46 -0800
2 files changed,
2 insertions(+),
0 deletions(-)
M
src/gba/gba-thread.c
→
src/gba/gba-thread.c
@@ -354,6 +354,7 @@ if (threadContext->debugger && threadContext->debugger->state == DEBUGGER_RUNNING) {
threadContext->debugger->state = DEBUGGER_EXITING; } threadContext->state = THREAD_EXITING; + threadContext->gba->cpu->halted = false; ConditionWake(&threadContext->stateCond); MutexUnlock(&threadContext->stateMutex); MutexLock(&threadContext->sync.audioBufferMutex);