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)
|
||||
{
|
||||
CoreOutputComm = new CoreOutputComm();
|
||||
CoreOutputComm.CpuTraceAvailable = true;
|
||||
BootGodDB.Initialize();
|
||||
SetPalette(Palettes.FCEUX_Standard);
|
||||
videoProvider = new MyVideoProvider(this);
|
||||
|
|
|
@ -35,5 +35,7 @@
|
|||
public string RomStatusDetails;
|
||||
|
||||
public int ScreenLogicalOffsetX, ScreenLogicalOffsetY;
|
||||
|
||||
public bool CpuTraceAvailable = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -626,13 +626,13 @@ namespace BizHawk.MultiClient
|
|||
cheatsToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.Cheats;
|
||||
tAStudioToolStripMenuItem.ShortcutKeyDisplayString = Global.Config.TASTudio;
|
||||
|
||||
if (INTERIM)
|
||||
if (INTERIM && Global.Emulator.CoreOutputComm.CpuTraceAvailable)
|
||||
{
|
||||
traceLoggerToolStripMenuItem.Visible = true;
|
||||
traceLoggerToolStripMenuItem.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
traceLoggerToolStripMenuItem.Visible = false;
|
||||
traceLoggerToolStripMenuItem.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue