mirror of https://github.com/mgba-emu/mgba.git
Qt: Restore reconfiguring rewind
This commit is contained in:
parent
f34f45257a
commit
d8c773bbf7
|
@ -659,10 +659,14 @@ void GameController::frameAdvance() {
|
|||
void GameController::setRewind(bool enable, int capacity) {
|
||||
if (m_gameOpen) {
|
||||
threadInterrupt();
|
||||
// TODO: Put back rewind
|
||||
if (m_threadContext.core->opts.rewindEnable) {
|
||||
mCoreRewindContextDeinit(&m_threadContext.rewind);
|
||||
}
|
||||
m_threadContext.core->opts.rewindEnable = enable;
|
||||
if (enable) {
|
||||
mCoreRewindContextInit(&m_threadContext.rewind, capacity);
|
||||
}
|
||||
threadContinue();
|
||||
} else {
|
||||
// TODO: Put back rewind
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -685,6 +689,9 @@ void GameController::startRewinding() {
|
|||
if (!isLoaded()) {
|
||||
return;
|
||||
}
|
||||
if (!m_threadContext.core->opts.rewindEnable) {
|
||||
return;
|
||||
}
|
||||
if (m_multiplayer && m_multiplayer->attached() > 1) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue