mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix resetting while paused
This commit is contained in:
parent
b111f0eb5e
commit
6dbe1f10f2
1
CHANGES
1
CHANGES
|
@ -26,6 +26,7 @@ Bugfixes:
|
|||
- ARM7: Fix bank switching with LDR[B]T/STR[B]T
|
||||
- Qt: Fix crash when closing multiplayer windows
|
||||
- GBA Video: Fix OAM and palette initialization
|
||||
- Qt: Fix resetting while paused
|
||||
Misc:
|
||||
- GBA Audio: Implement missing flags on SOUNDCNT_X register
|
||||
- Qt: Add mute option to menu
|
||||
|
|
|
@ -478,8 +478,15 @@ void GameController::setPaused(bool paused) {
|
|||
}
|
||||
|
||||
void GameController::reset() {
|
||||
if (!m_gameOpen) {
|
||||
return;
|
||||
}
|
||||
bool wasPaused = isPaused();
|
||||
setPaused(false);
|
||||
GBAThreadReset(&m_threadContext);
|
||||
if (wasPaused) {
|
||||
setPaused(true);
|
||||
}
|
||||
}
|
||||
|
||||
void GameController::threadInterrupt() {
|
||||
|
|
Loading…
Reference in New Issue