all repos — mgba @ c39be359df21c462b110ab049608c6e7e1e5aef8

mGBA Game Boy Advance Emulator

Qt: Fix regression with held reverse breaking (fixes #78)
Jeffrey Pfau jeffrey@endrift.com
Fri, 07 Aug 2015 19:10:08 -0700
commit

c39be359df21c462b110ab049608c6e7e1e5aef8

parent

9a5ac0bf72d88ef3a380eae86ad0a31ba5e102b6

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -533,9 +533,9 @@ if (!m_gameOpen || m_rewindTimer.isActive()) {

return; } m_wasPaused = isPaused(); - bool signalsBlocked = blockSignals(true); - setPaused(true); - blockSignals(signalsBlocked); + if (!GBAThreadIsPaused(&m_threadContext)) { + GBAThreadPause(&m_threadContext); + } m_rewindTimer.start(); }