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(); string romName = InteropEmu.GetRomInfo().GetRomName();
if(_workspace != null) { 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) //Send breakpoints & labels to emulation core (even if the same game is running)
BreakpointManager.SetBreakpoints(_workspace.Breakpoints); BreakpointManager.SetBreakpoints(_workspace.Breakpoints);
LabelManager.RefreshLabels(); LabelManager.RefreshLabels();
}
return _workspace; return _workspace;
} }

View file

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