Remove LoadTraceLogger() from ToolManager since it was simply a wrapper to manage availability logic, most of those types of properties should be removed now

This commit is contained in:
adelikat 2014-12-14 01:39:15 +00:00
parent e214706e4c
commit 685756ea8e
5 changed files with 4 additions and 12 deletions

View File

@ -1149,7 +1149,7 @@ namespace BizHawk.Client.EmuHawk
private void TraceLoggerMenuItem_Click(object sender, EventArgs e)
{
GlobalWin.Tools.LoadTraceLogger();
GlobalWin.Tools.Load<TraceLogger>();
}
private void DebuggerMenuItem_Click(object sender, EventArgs e)

View File

@ -300,7 +300,7 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.Tools.Load<HexEditor>();
break;
case "Trace Logger":
GlobalWin.Tools.LoadTraceLogger();
GlobalWin.Tools.Load<TraceLogger>();
break;
case "Lua Console":
OpenLuaConsole();

View File

@ -449,7 +449,7 @@ namespace BizHawk.Client.EmuHawk
if (Global.Config.TraceLoggerAutoLoad)
{
GlobalWin.Tools.LoadTraceLogger();
GlobalWin.Tools.Load<TraceLogger>();
}
if (Global.Config.GenericDebuggerAutoload)

View File

@ -211,7 +211,7 @@ namespace BizHawk.Client.EmuHawk
)]
public static void OpenTraceLogger()
{
GlobalWin.Tools.LoadTraceLogger();
GlobalWin.Tools.Load<TraceLogger>();
}
[LuaMethodAttributes(

View File

@ -557,14 +557,6 @@ namespace BizHawk.Client.EmuHawk
}
}
public void LoadTraceLogger()
{
if (Global.Emulator.CpuTraceAvailable())
{
Load<TraceLogger>();
}
}
public void LoadGameGenieEc()
{
if (Global.Emulator.SystemId == "NES")