Win32 - disabled savestate, loadstate, and setsaveslot hotkeys when no rom is loaded.
This commit is contained in:
parent
016a543ef3
commit
2ae4e618e5
|
@ -111,6 +111,8 @@ void HK_PrintScreen(int param)
|
|||
}
|
||||
|
||||
void HK_StateSaveSlot(int num)
|
||||
{
|
||||
if (romloaded)
|
||||
{
|
||||
if (!paused)
|
||||
{
|
||||
|
@ -125,8 +127,11 @@ void HK_StateSaveSlot(int num)
|
|||
SaveStateMessages(num, 0); //Display state loaded message
|
||||
LoadSaveStateInfo();
|
||||
}
|
||||
}
|
||||
|
||||
void HK_StateLoadSlot(int num)
|
||||
{
|
||||
if (romloaded)
|
||||
{
|
||||
BOOL wasPaused = paused;
|
||||
NDS_Pause();
|
||||
|
@ -142,12 +147,16 @@ void HK_StateLoadSlot(int num)
|
|||
else
|
||||
Display();
|
||||
}
|
||||
}
|
||||
|
||||
void HK_StateSetSlot(int num)
|
||||
{
|
||||
if (romloaded)
|
||||
{
|
||||
lastSaveState = num;
|
||||
SaveStateMessages(num,2);
|
||||
}
|
||||
}
|
||||
|
||||
void HK_StateQuickSaveSlot(int)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue