mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix resetting while paused
This commit is contained in:
parent
d074967ed8
commit
edd604b700
1
CHANGES
1
CHANGES
|
@ -40,6 +40,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:
|
||||
- Qt: Window size command line options are now supported
|
||||
- Qt: Increase usability of key mapper
|
||||
|
|
|
@ -474,8 +474,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