all repos — mgba @ 822df237a3e927e3dec634b5f2db71aedf155081

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

822df237a3e927e3dec634b5f2db71aedf155081

parent

aae0efbd09c5f89882725cc35607542fe0b32b5e

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);