mirror of https://github.com/mgba-emu/mgba.git
GBA Thread: Allow halted games to exit cleanly
This commit is contained in:
parent
c9a38dbc70
commit
ff99a859c1
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue