CPU: Make single step go through the "normal" execution path

That way it exits and re-enters the dynarec as expected.
This commit is contained in:
Stenzek
2024-02-10 23:16:44 +09:00
parent e3a287de44
commit eeef0a92bb
3 changed files with 63 additions and 56 deletions

View File

@ -1932,19 +1932,11 @@ void System::Throttle()
void System::SingleStepCPU()
{
s_frame_timer.Reset();
s_system_executing = true;
CPU::SetSingleStepFlag();
g_gpu->RestoreDeviceContext();
CPU::SingleStep();
g_gpu->FlushRender();
SPU::GeneratePendingSamples();
InvalidateDisplay();
s_system_executing = false;
// If this gets called when the system is executing, we're not going to end up here..
if (IsPaused())
PauseSystem(false);
}
void System::IncrementInternalFrameNumber()