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

@ -112,6 +112,8 @@ void HK_PrintScreen(int param)
void HK_StateSaveSlot(int num)
{
if (romloaded)
{
if (!paused)
{
NDS_Pause();
@ -124,10 +126,13 @@ void HK_StateSaveSlot(int num)
lastSaveState = num; //Set last savestate used
SaveStateMessages(num, 0); //Display state loaded message
LoadSaveStateInfo();
}
}
void HK_StateLoadSlot(int num)
{
if (romloaded)
{
BOOL wasPaused = paused;
NDS_Pause();
loadstate_slot(num); //Loadstate
@ -141,12 +146,16 @@ void HK_StateLoadSlot(int num)
NDS_UnPause();
else
Display();
}
}
void HK_StateSetSlot(int num)
{
if (romloaded)
{
lastSaveState = num;
SaveStateMessages(num,2);
}
}
void HK_StateQuickSaveSlot(int)