Debugger: Refactoring - Removed unnecessary option on GetWorkspace

This commit is contained in:
Sour 2020-05-19 23:09:03 -04:00
parent 0b6d1cba11
commit cb75f7fbe1
2 changed files with 5 additions and 7 deletions

View file

@ -71,7 +71,7 @@ namespace Mesen.GUI.Debugger
}
}
public static DebugWorkspace GetWorkspace(bool refreshState = true)
public static DebugWorkspace GetWorkspace()
{
string romName = InteropEmu.GetRomInfo().GetRomName();
if(_workspace != null) {
@ -96,11 +96,9 @@ namespace Mesen.GUI.Debugger
}
}
if(refreshState) {
//Send breakpoints & labels to emulation core (even if the same game is running)
BreakpointManager.SetBreakpoints(_workspace.Breakpoints);
LabelManager.RefreshLabels();
}
//Send breakpoints & labels to emulation core (even if the same game is running)
BreakpointManager.SetBreakpoints(_workspace.Breakpoints);
LabelManager.RefreshLabels();
return _workspace;
}

View file

@ -238,7 +238,7 @@ namespace Mesen.GUI.Debugger
private void InitTblMappings()
{
DebugWorkspace workspace = DebugWorkspaceManager.GetWorkspace(false);
DebugWorkspace workspace = DebugWorkspaceManager.GetWorkspace();
if(workspace.TblMappings != null && workspace.TblMappings.Count > 0) {
var tblDict = TblLoader.ToDictionary(workspace.TblMappings.ToArray());
if(tblDict != null) {