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)
|
private void SelectSlot(int num)
|
||||||
|
{
|
||||||
|
if (Global.Emulator.HasSavestates())
|
||||||
{
|
{
|
||||||
Global.Config.SaveSlot = num;
|
Global.Config.SaveSlot = num;
|
||||||
SaveSlotSelectedMessage();
|
SaveSlotSelectedMessage();
|
||||||
UpdateStatusSlots();
|
UpdateStatusSlots();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void RewireSound()
|
private void RewireSound()
|
||||||
{
|
{
|
||||||
|
@ -2012,6 +2015,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PreviousSlot()
|
private void PreviousSlot()
|
||||||
|
{
|
||||||
|
if (Global.Emulator.HasSavestates())
|
||||||
{
|
{
|
||||||
if (Global.Config.SaveSlot == 0)
|
if (Global.Config.SaveSlot == 0)
|
||||||
{
|
{
|
||||||
|
@ -2029,8 +2034,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
SaveSlotSelectedMessage();
|
SaveSlotSelectedMessage();
|
||||||
UpdateStatusSlots();
|
UpdateStatusSlots();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void NextSlot()
|
private void NextSlot()
|
||||||
|
{
|
||||||
|
if (Global.Emulator.HasSavestates())
|
||||||
{
|
{
|
||||||
if (Global.Config.SaveSlot >= 9)
|
if (Global.Config.SaveSlot >= 9)
|
||||||
{
|
{
|
||||||
|
@ -2048,6 +2056,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
SaveSlotSelectedMessage();
|
SaveSlotSelectedMessage();
|
||||||
UpdateStatusSlots();
|
UpdateStatusSlots();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static void ToggleFPS()
|
private static void ToggleFPS()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue