From 4f1a5e0b3a2e3c2e01938bf552f35f896cc7b021 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 18 May 2024 11:54:12 -0500 Subject: [PATCH] DolphinQt: trigger frame advance from hotkeys on the host thread (the underlying SetState is only valid on the host thread) --- Source/Core/DolphinQt/HotkeyScheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index 698ad2d8e6..c02303ed5c 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -113,7 +113,7 @@ static void HandleFrameStepHotkeys() if ((frame_step_count == 0 || frame_step_count == FRAME_STEP_DELAY) && !frame_step_hold) { - Core::DoFrameStep(Core::System::GetInstance()); + Core::QueueHostJob([](auto& system) { Core::DoFrameStep(system); }); frame_step_hold = true; }