mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix held-rewind getting into bad pause states
This commit is contained in:
parent
502ca7abd7
commit
3af3fab3cf
|
@ -419,6 +419,9 @@ void GameController::threadContinue() {
|
|||
}
|
||||
|
||||
void GameController::frameAdvance() {
|
||||
if (m_rewindTimer.isActive()) {
|
||||
return;
|
||||
}
|
||||
m_pauseMutex.lock();
|
||||
m_pauseAfterFrame = true;
|
||||
setPaused(false);
|
||||
|
@ -454,7 +457,7 @@ void GameController::rewind(int states) {
|
|||
}
|
||||
|
||||
void GameController::startRewinding() {
|
||||
if (!m_gameOpen) {
|
||||
if (!m_gameOpen || m_rewindTimer.isActive()) {
|
||||
return;
|
||||
}
|
||||
m_wasPaused = isPaused();
|
||||
|
|
Loading…
Reference in New Issue