Debugger: Refactoring - Removed unnecessary option on GetWorkspace
This commit is contained in:
parent
0b6d1cba11
commit
cb75f7fbe1
2 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue