mirror of https://github.com/mgba-emu/mgba.git
Qt: Minor code cleanup for setTurbo
This commit is contained in:
parent
569e6ef7db
commit
9ec24a5b97
|
@ -377,11 +377,7 @@ void GameController::setTurbo(bool set, bool forced) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_turbo = set;
|
m_turbo = set;
|
||||||
if (set) {
|
m_turboForced = set && forced;
|
||||||
m_turboForced = forced;
|
|
||||||
} else {
|
|
||||||
m_turboForced = false;
|
|
||||||
}
|
|
||||||
threadInterrupt();
|
threadInterrupt();
|
||||||
m_threadContext.sync.audioWait = set ? false : m_audioSync;
|
m_threadContext.sync.audioWait = set ? false : m_audioSync;
|
||||||
m_threadContext.sync.videoFrameWait = set ? false : m_videoSync;
|
m_threadContext.sync.videoFrameWait = set ? false : m_videoSync;
|
||||||
|
|
Loading…
Reference in New Issue