From 65249ad0f994bacc9ad4d52ec6f626924ee1fb0e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 30 Nov 2014 17:41:24 +0000 Subject: [PATCH] MainForm - File Menu - disable savestate related submenus if core does not implement IStatable --- BizHawk.Client.EmuHawk/MainForm.Events.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Client.EmuHawk/MainForm.Events.cs b/BizHawk.Client.EmuHawk/MainForm.Events.cs index 746d8b46e2..900aae444e 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -29,6 +29,11 @@ namespace BizHawk.Client.EmuHawk private void FileSubMenu_DropDownOpened(object sender, EventArgs e) { + SaveStateSubMenu.Enabled = + LoadStateSubMenu.Enabled = + SaveSlotSubMenu.Enabled = + Global.Emulator.HasSavestates(); + OpenRomMenuItem.ShortcutKeyDisplayString = Global.Config.HotkeyBindings["Open ROM"].Bindings; CloseRomMenuItem.ShortcutKeyDisplayString = Global.Config.HotkeyBindings["Close ROM"].Bindings;