win32: fix #2785867 (date & timestamp not shown on savestate slot immediately)
This commit is contained in:
parent
a30cf51c7d
commit
712b23d512
|
@ -118,6 +118,7 @@ void HK_StateSaveSlot(int num)
|
||||||
|
|
||||||
lastSaveState = num; //Set last savestate used
|
lastSaveState = num; //Set last savestate used
|
||||||
SaveStateMessages(num, 0); //Display state loaded message
|
SaveStateMessages(num, 0); //Display state loaded message
|
||||||
|
LoadSaveStateInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HK_StateLoadSlot(int num)
|
void HK_StateLoadSlot(int num)
|
||||||
|
|
|
@ -2824,6 +2824,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
}
|
}
|
||||||
|
|
||||||
savestate_save(SavName);
|
savestate_save(SavName);
|
||||||
|
LoadSaveStateInfo();
|
||||||
NDS_UnPause();
|
NDS_UnPause();
|
||||||
}
|
}
|
||||||
return 0;
|
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_F9:
|
||||||
case IDM_STATE_SAVE_F10:
|
case IDM_STATE_SAVE_F10:
|
||||||
HK_StateSaveSlot( abs(IDM_STATE_SAVE_F1 - LOWORD(wParam)) +1);
|
HK_StateSaveSlot( abs(IDM_STATE_SAVE_F1 - LOWORD(wParam)) +1);
|
||||||
LoadSaveStateInfo();
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case IDM_STATE_LOAD_F1:
|
case IDM_STATE_LOAD_F1:
|
||||||
|
|
|
@ -8,6 +8,7 @@ extern volatile BOOL execute, paused;
|
||||||
void NDS_Pause();
|
void NDS_Pause();
|
||||||
void NDS_UnPause();
|
void NDS_UnPause();
|
||||||
extern unsigned int lastSaveState;
|
extern unsigned int lastSaveState;
|
||||||
|
void LoadSaveStateInfo();
|
||||||
void SaveStateMessages(int slotnum, int whichMessage);
|
void SaveStateMessages(int slotnum, int whichMessage);
|
||||||
void Display();
|
void Display();
|
||||||
void Pause();
|
void Pause();
|
||||||
|
|
Loading…
Reference in New Issue