Lag Counter hotkey logic, and Tastudio depends on both IStatable and IInputPollable
This commit is contained in:
parent
a83d714c42
commit
05533c8562
|
@ -1104,7 +1104,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
TraceLoggerMenuItem.ShortcutKeyDisplayString = Global.Config.HotkeyBindings["Trace Logger"].Bindings;
|
||||
TraceLoggerMenuItem.Enabled = Global.Emulator.CoreComm.CpuTraceAvailable;
|
||||
|
||||
TAStudioMenuItem.Enabled = Global.Emulator.HasSavestates();
|
||||
TAStudioMenuItem.Enabled = Global.Emulator.HasSavestates() && Global.Emulator.CanPollInput();
|
||||
|
||||
CheatsMenuItem.Enabled =
|
||||
HexEditorMenuItem.Enabled =
|
||||
|
|
|
@ -54,7 +54,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
ToggleFrameCounter();
|
||||
break;
|
||||
case "Lag Counter":
|
||||
ToggleLagCounter();
|
||||
if (Global.Emulator.CanPollInput())
|
||||
{
|
||||
ToggleLagCounter();
|
||||
}
|
||||
break;
|
||||
case "Input Display":
|
||||
ToggleInputDisplay();
|
||||
|
@ -315,7 +318,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
break;
|
||||
case "TAStudio":
|
||||
if (Global.Emulator.HasSavestates())
|
||||
if (Global.Emulator.HasSavestates() && Global.Emulator.CanPollInput())
|
||||
{
|
||||
GlobalWin.Tools.Load<TAStudio>();
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
NesDebuggerToolbarItem.Visible = VersionInfo.DeveloperBuild && Global.Emulator.SystemId == "NES";
|
||||
|
||||
TAStudioToolbarItem.Visible = Global.Emulator.HasSavestates();
|
||||
TAStudioToolbarItem.Visible = Global.Emulator.HasSavestates() && Global.Emulator.CanPollInput();
|
||||
|
||||
foreach (var button in ToolBoxItems)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue