MainForm - File Menu - disable savestate related submenus if core does not implement IStatable

This commit is contained in:
adelikat 2014-11-30 17:41:24 +00:00
parent bdccb6d400
commit 65249ad0f9
1 changed files with 5 additions and 0 deletions

View File

@ -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;