Add a CpuTracingAvailable flag to CoreOutputComm and set to true for NES, set the Trace Logger menu item to be enabled/disabled based on this flag
This commit is contained in:
parent
bb995c1472
commit
f8c508b1a3
|
@ -19,6 +19,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
|
||||||
public NES(GameInfo game, byte[] rom)
|
public NES(GameInfo game, byte[] rom)
|
||||||
{
|
{
|
||||||
CoreOutputComm = new CoreOutputComm();
|
CoreOutputComm = new CoreOutputComm();
|
||||||
|
CoreOutputComm.CpuTraceAvailable = true;
|
||||||
BootGodDB.Initialize();
|
BootGodDB.Initialize();
|
||||||
SetPalette(Palettes.FCEUX_Standard);
|
SetPalette(Palettes.FCEUX_Standard);
|
||||||
videoProvider = new MyVideoProvider(this);
|
videoProvider = new MyVideoProvider(this);
|
||||||
|
|
|
@ -35,5 +35,7 @@
|
||||||
public string RomStatusDetails;
|
public string RomStatusDetails;
|
||||||
|
|
||||||
public int ScreenLogicalOffsetX, ScreenLogicalOffsetY;
|
public int ScreenLogicalOffsetX, ScreenLogicalOffsetY;
|
||||||
|
|
||||||
|
public bool CpuTraceAvailable = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -626,13 +626,13 @@ namespace BizHawk.MultiClient
|
||||||
cheatsToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.Cheats;
|
cheatsToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.Cheats;
|
||||||
tAStudioToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.TASTudio;
|
tAStudioToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.TASTudio;
|
||||||
|
|
||||||
if (INTERIM)
|
if (INTERIM && Global.Emulator.CoreOutputComm.CpuTraceAvailable)
|
||||||
{
|
{
|
||||||
traceLoggerToolStripMenuItem.Visible = true;
|
traceLoggerToolStripMenuItem.Enabled = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
traceLoggerToolStripMenuItem.Visible = false;
|
traceLoggerToolStripMenuItem.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue