mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Merge pull request #12784 from TryTwo/PR_Frame_Advance_Fix
Frame Advance: Fix UI update spam when continuously advancing.
This commit is contained in:
@ -113,6 +113,8 @@ static void HandleFrameStepHotkeys()
|
||||
|
||||
if ((frame_step_count == 0 || frame_step_count == FRAME_STEP_DELAY) && !frame_step_hold)
|
||||
{
|
||||
if (frame_step_count > 0)
|
||||
Settings::Instance().SetIsContinuouslyFrameStepping(true);
|
||||
Core::QueueHostJob([](auto& system) { Core::DoFrameStep(system); });
|
||||
frame_step_hold = true;
|
||||
}
|
||||
@ -138,6 +140,8 @@ static void HandleFrameStepHotkeys()
|
||||
frame_step_count = 0;
|
||||
frame_step_hold = false;
|
||||
frame_step_delay_count = 0;
|
||||
Settings::Instance().SetIsContinuouslyFrameStepping(false);
|
||||
emit Settings::Instance().EmulationStateChanged(Core::GetState(Core::System::GetInstance()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user