mirror of https://github.com/mgba-emu/mgba.git
GBA Thread: Allow halted games to exit cleanly
This commit is contained in:
parent
43b0d070b8
commit
9c1ec8c96d
1
CHANGES
1
CHANGES
|
@ -5,6 +5,7 @@ Features:
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
- Qt: Fix issue with set frame sizes being the wrong height
|
- Qt: Fix issue with set frame sizes being the wrong height
|
||||||
- Qt: Fix emulator crashing when full screen if a game is not running
|
- Qt: Fix emulator crashing when full screen if a game is not running
|
||||||
|
- GBA Thread: Allow halted games to exit cleanly
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Disable sync to video by default
|
- Qt: Disable sync to video by default
|
||||||
|
|
||||||
|
|
|
@ -357,6 +357,7 @@ void GBAThreadEnd(struct GBAThread* threadContext) {
|
||||||
threadContext->debugger->state = DEBUGGER_EXITING;
|
threadContext->debugger->state = DEBUGGER_EXITING;
|
||||||
}
|
}
|
||||||
threadContext->state = THREAD_EXITING;
|
threadContext->state = THREAD_EXITING;
|
||||||
|
threadContext->gba->cpu->halted = false;
|
||||||
ConditionWake(&threadContext->stateCond);
|
ConditionWake(&threadContext->stateCond);
|
||||||
MutexUnlock(&threadContext->stateMutex);
|
MutexUnlock(&threadContext->stateMutex);
|
||||||
MutexLock(&threadContext->sync.audioBufferMutex);
|
MutexLock(&threadContext->sync.audioBufferMutex);
|
||||||
|
|
Loading…
Reference in New Issue