all repos — mgba @ d9db9315ffca0bbc29a012c139fb2c23cf80248c

mGBA Game Boy Advance Emulator

Qt: Disable rewinding when in multiplayer
Jeffrey Pfau jeffrey@endrift.com
Wed, 16 Sep 2015 00:20:38 -0700
commit

d9db9315ffca0bbc29a012c139fb2c23cf80248c

parent

fe9c73dd6f4f8fbbc98ad623c942986c43decf31

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

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

@@ -534,6 +534,9 @@ void GameController::startRewinding() {

if (!m_gameOpen || m_rewindTimer.isActive()) { return; } + if (m_multiplayer && m_multiplayer->attached() > 1) { + return; + } m_wasPaused = isPaused(); if (!GBAThreadIsPaused(&m_threadContext)) { GBAThreadPause(&m_threadContext);