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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue