win32: fix #2785867 (date & timestamp not shown on savestate slot immediately)

This commit is contained in:
zeromus 2009-05-05 00:02:43 +00:00
parent a30cf51c7d
commit 712b23d512
3 changed files with 3 additions and 1 deletions

View File

@ -118,6 +118,7 @@ void HK_StateSaveSlot(int num)
lastSaveState = num; //Set last savestate used
SaveStateMessages(num, 0); //Display state loaded message
LoadSaveStateInfo();
}
void HK_StateLoadSlot(int num)

View File

@ -2824,6 +2824,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
}
savestate_save(SavName);
LoadSaveStateInfo();
NDS_UnPause();
}
return 0;
@ -2838,7 +2839,6 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
case IDM_STATE_SAVE_F9:
case IDM_STATE_SAVE_F10:
HK_StateSaveSlot( abs(IDM_STATE_SAVE_F1 - LOWORD(wParam)) +1);
LoadSaveStateInfo();
return 0;
case IDM_STATE_LOAD_F1:

View File

@ -8,6 +8,7 @@ extern volatile BOOL execute, paused;
void NDS_Pause();
void NDS_UnPause();
extern unsigned int lastSaveState;
void LoadSaveStateInfo();
void SaveStateMessages(int slotnum, int whichMessage);
void Display();
void Pause();