mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix loading a script leaving sync disabled
This commit is contained in:
parent
a473aeff2c
commit
1d01a7585c
|
@ -83,10 +83,12 @@ bool ScriptingController::load(VFileDevice& vf, const QString& name) {
|
|||
emit error(QString::fromUtf8(m_activeEngine->getError(m_activeEngine)));
|
||||
ok = false;
|
||||
}
|
||||
if (m_controller && m_controller->isPaused()) {
|
||||
if (m_controller) {
|
||||
m_controller->setSync(true);
|
||||
if (m_controller->isPaused()) {
|
||||
m_controller->paused();
|
||||
}
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue