Check HasSavestates() on some hotkeys
This commit is contained in:
parent
2fce719309
commit
2bd45e653c
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue