Check HasSavestates() on some hotkeys

This commit is contained in:
adelikat 2014-11-30 19:48:10 +00:00
parent 2fce719309
commit 2bd45e653c
1 changed files with 38 additions and 29 deletions

View File

@ -1484,11 +1484,14 @@ namespace BizHawk.Client.EmuHawk
}
private void SelectSlot(int num)
{
if (Global.Emulator.HasSavestates())
{
Global.Config.SaveSlot = num;
SaveSlotSelectedMessage();
UpdateStatusSlots();
}
}
private void RewireSound()
{
@ -2012,6 +2015,8 @@ namespace BizHawk.Client.EmuHawk
}
private void PreviousSlot()
{
if (Global.Emulator.HasSavestates())
{
if (Global.Config.SaveSlot == 0)
{
@ -2029,8 +2034,11 @@ namespace BizHawk.Client.EmuHawk
SaveSlotSelectedMessage();
UpdateStatusSlots();
}
}
private void NextSlot()
{
if (Global.Emulator.HasSavestates())
{
if (Global.Config.SaveSlot >= 9)
{
@ -2048,6 +2056,7 @@ namespace BizHawk.Client.EmuHawk
SaveSlotSelectedMessage();
UpdateStatusSlots();
}
}
private static void ToggleFPS()
{