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
CHANGES
→
CHANGES
@@ -5,6 +5,7 @@ - Add scale presets for up to 6x
Bugfixes: - Qt: Fix issue with set frame sizes being the wrong height - Qt: Fix emulator crashing when full screen if a game is not running + - GBA Thread: Allow halted games to exit cleanly Misc: - Qt: Disable sync to video by default
M
src/gba/gba-thread.c
→
src/gba/gba-thread.c
@@ -357,6 +357,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);