GBA Thread: Allow halted games to exit cleanly

This commit is contained in:
Jeffrey Pfau 2014-12-16 22:36:46 -08:00
parent c9a38dbc70
commit ff99a859c1
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
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

View File

@ -354,6 +354,7 @@ void GBAThreadEnd(struct GBAThread* threadContext) {
threadContext->debugger->state = DEBUGGER_EXITING;
}
threadContext->state = THREAD_EXITING;
threadContext->gba->cpu->halted = false;
ConditionWake(&threadContext->stateCond);
MutexUnlock(&threadContext->stateMutex);
MutexLock(&threadContext->sync.audioBufferMutex);