mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix regression with overrides applying out of order
This commit is contained in:
parent
d5bf63caa8
commit
92f18fbf3e
|
@ -61,11 +61,6 @@ CoreController::CoreController(mCore* core, QObject* parent)
|
|||
break;
|
||||
}
|
||||
|
||||
if (controller->m_override) {
|
||||
controller->m_override->identify(context->core);
|
||||
controller->m_override->apply(context->core);
|
||||
}
|
||||
|
||||
if (controller->m_multiplayer) {
|
||||
controller->m_multiplayer->attachGame(controller);
|
||||
}
|
||||
|
@ -79,6 +74,11 @@ CoreController::CoreController(mCore* core, QObject* parent)
|
|||
action();
|
||||
}
|
||||
|
||||
if (controller->m_override) {
|
||||
controller->m_override->identify(context->core);
|
||||
controller->m_override->apply(context->core);
|
||||
}
|
||||
|
||||
if (mCoreLoadState(context->core, 0, controller->m_loadStateFlags)) {
|
||||
mCoreDeleteState(context->core, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue