Win32 - disabled savestate, loadstate, and setsaveslot hotkeys when no rom is loaded.

This commit is contained in:
adelikat 2009-05-23 19:51:51 +00:00
parent 016a543ef3
commit 2ae4e618e5
1 changed files with 32 additions and 23 deletions

View File

@ -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)
{