From f085acf68049287257a8fc4359510e24cd747dca Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 8 May 2009 12:50:43 +0000 Subject: [PATCH] Win32 - RamWatch and RamSearch update values when Load As is selected --- desmume/src/windows/hotkey.cpp | 4 ++-- desmume/src/windows/main.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/hotkey.cpp b/desmume/src/windows/hotkey.cpp index 376a765b2..e4047294a 100644 --- a/desmume/src/windows/hotkey.cpp +++ b/desmume/src/windows/hotkey.cpp @@ -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(); diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 3daac52d4..4f96a6949 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -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;