Qt: Fix regression with overrides applying out of order
Vicki Pfau vi@endrift.com
Wed, 20 Sep 2017 22:17:55 -0700
1 files changed,
5 insertions(+),
5 deletions(-)
M
src/platform/qt/CoreController.cpp
→
src/platform/qt/CoreController.cpp
@@ -61,11 +61,6 @@ default:
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); }@@ -77,6 +72,11 @@ m_threadContext.resetCallback = [](mCoreThread* context) {
CoreController* controller = static_cast<CoreController*>(context->userData); for (auto action : controller->m_resetActions) { 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)) {