Debugger: Init breakpoints right away after a power cycle

Otherwise breakpoints early on in the execution aren't hit at all
This commit is contained in:
Sour 2019-10-08 21:53:42 -04:00
parent 681b09d3a8
commit f2be04343a

View file

@ -409,13 +409,14 @@ namespace Mesen.GUI.Debugger
DebugApi.Step(_cpuType, 1, StepType.PpuStep); DebugApi.Step(_cpuType, 1, StepType.PpuStep);
} }
BreakpointManager.SetBreakpoints();
DebugState state = DebugApi.GetState(); DebugState state = DebugApi.GetState();
this.BeginInvoke((MethodInvoker)(() => { this.BeginInvoke((MethodInvoker)(() => {
DebugWorkspaceManager.ImportDbgFile(); DebugWorkspaceManager.ImportDbgFile();
LabelManager.RefreshLabels(); LabelManager.RefreshLabels();
DebugApi.RefreshDisassembly(_cpuType); DebugApi.RefreshDisassembly(_cpuType);
UpdateDebugger(state, null); UpdateDebugger(state, null);
BreakpointManager.SetBreakpoints();
})); }));
break; break;
} }