Win32 - Added Update_Ram_Search() and Update_Ram_Watch() to loadstate function. However, the values still do not update until the dialog refreshes (such as minimizing and restoring)

This commit is contained in:
adelikat 2009-05-08 00:09:43 +00:00
parent edbfe3f066
commit 9ff5be6f67
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,8 @@
#include "throttle.h" #include "throttle.h"
#include "../mic.h" #include "../mic.h"
#include "../movie.h" #include "../movie.h"
#include "ramwatch.h" //In order to call UpdateRamWatch (for loadstate functions)
#include "ram_search.h" //In order to call UpdateRamSearch (for loadstate functions)
extern LRESULT OpenFile(); //adelikat: Made this an extern here instead of main.h Seemed icky not to limit the scope of this function extern LRESULT OpenFile(); //adelikat: Made this an extern here instead of main.h Seemed icky not to limit the scope of this function
@ -123,6 +125,8 @@ void HK_StateSaveSlot(int num)
void HK_StateLoadSlot(int num) void HK_StateLoadSlot(int num)
{ {
Update_RAM_Watch();
Update_RAM_Search();
BOOL wasPaused = paused; BOOL wasPaused = paused;
NDS_Pause(); NDS_Pause();
loadstate_slot(num); //Loadstate loadstate_slot(num); //Loadstate