all repos — mgba @ 9c1ec8c96d0d3b6abd775cbe3501cf9f1fb46cae

mGBA Game Boy Advance Emulator

GBA Thread: Allow halted games to exit cleanly
Jeffrey Pfau jeffrey@endrift.com
Tue, 16 Dec 2014 22:36:46 -0800
commit

9c1ec8c96d0d3b6abd775cbe3501cf9f1fb46cae

parent

43b0d070b81d35580f5ff44af782cf14dcd98679

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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);