mirror of https://github.com/mgba-emu/mgba.git
Qt: Disable rewinding when in multiplayer
This commit is contained in:
parent
aae0efbd09
commit
822df237a3
|
@ -534,6 +534,9 @@ void GameController::startRewinding() {
|
||||||
if (!m_gameOpen || m_rewindTimer.isActive()) {
|
if (!m_gameOpen || m_rewindTimer.isActive()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (m_multiplayer && m_multiplayer->attached() > 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_wasPaused = isPaused();
|
m_wasPaused = isPaused();
|
||||||
if (!GBAThreadIsPaused(&m_threadContext)) {
|
if (!GBAThreadIsPaused(&m_threadContext)) {
|
||||||
GBAThreadPause(&m_threadContext);
|
GBAThreadPause(&m_threadContext);
|
||||||
|
|
Loading…
Reference in New Issue