Debugger: Fixed labels disappearing from the code window after a power cycle

This commit is contained in:
Sour 2019-01-18 22:18:17 -05:00
parent 2aaac25956
commit e5107d3b21
2 changed files with 7 additions and 0 deletions

View file

@ -197,6 +197,12 @@ namespace Mesen.GUI.Debugger
}
}
public static void RefreshLabels()
{
InteropEmu.DebugDeleteLabels();
LabelManager.SetLabels(GetLabels(), true);
}
private const int FdsMapperID = 65535;
private const int NsfMapperID = 65534;

View file

@ -519,6 +519,7 @@ namespace Mesen.GUI.Debugger
bool breakOnReset = ConfigManager.Config.DebugInfo.BreakOnReset && !InteropEmu.IsNsf();
this.BeginInvoke((MethodInvoker)(() => {
this.UpdateWorkspace();
LabelManager.RefreshLabels();
this.AutoLoadCdlFiles();
DebugWorkspaceManager.AutoLoadDbgFiles(true);
UpdateDebugger(true, false);