mirror of
https://github.com/libretro/mgba.git
synced 2024-11-27 10:11:00 +00:00
Qt: Fix loading a script leaving sync disabled
This commit is contained in:
parent
0b17a40d6b
commit
6f14732e0d
@ -111,10 +111,12 @@ bool ScriptingController::load(VFileDevice& vf, const QString& name) {
|
|||||||
emit error(QString::fromUtf8(m_activeEngine->getError(m_activeEngine)));
|
emit error(QString::fromUtf8(m_activeEngine->getError(m_activeEngine)));
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
if (m_controller && m_controller->isPaused()) {
|
if (m_controller) {
|
||||||
m_controller->setSync(true);
|
m_controller->setSync(true);
|
||||||
|
if (m_controller->isPaused()) {
|
||||||
m_controller->paused();
|
m_controller->paused();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user