Win32 - RamWatch and RamSearch update values when Load As is selected

This commit is contained in:
adelikat 2009-05-08 12:50:43 +00:00
parent 871f7b3aee
commit f085acf680
2 changed files with 4 additions and 2 deletions

View File

@ -131,8 +131,8 @@ void HK_StateLoadSlot(int num)
lastSaveState = num; //Set last savestate used
SaveStateMessages(num, 1); //Display state loaded message
Update_RAM_Watch();
Update_RAM_Search();
Update_RAM_Watch(); //adelikat: TODO this should be a single function call in main, that way we can expand as future dialogs need updating
Update_RAM_Search(); //main.cpp - case IDM_STATE_LOAD: also calls these functions
if(!wasPaused)
NDS_UnPause();

View File

@ -2845,6 +2845,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
}
savestate_load(SavName);
Update_RAM_Watch(); //adelikat: TODO this should be a single function call in main, that way we can expand as future dialogs need updating
Update_RAM_Search(); //hotkey.cpp - HK_StateLoadSlot also calls these functions
NDS_UnPause();
}
return 0;