From 4485db61eb9ec65c7470376694e9703cbe9cfcf3 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 7 May 2009 16:47:53 +0000 Subject: [PATCH] Win32 - RamWatch - main window will load the watch file now --- desmume/src/windows/main.cpp | 3 ++- desmume/src/windows/ramwatch.cpp | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index c224b2769..346750951 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1369,7 +1369,8 @@ BOOL LoadROM(char * filename, const char *cflash_disk_image) UpdateRecentRoms(filename); osd->setRotate(GPU_rotation); if (AutoRWLoad) //Open Ram Watch if its auto-load setting is checked - RamWatchHWnd = CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_RAMWATCH), MainWindow->getHWnd(), (DLGPROC) RamWatchProc); + OpenRWRecentFile(0); + RamWatchHWnd = CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_RAMWATCH), MainWindow->getHWnd(), (DLGPROC) RamWatchProc); return TRUE; } diff --git a/desmume/src/windows/ramwatch.cpp b/desmume/src/windows/ramwatch.cpp index a3d7ea70e..e2c38be3b 100644 --- a/desmume/src/windows/ramwatch.cpp +++ b/desmume/src/windows/ramwatch.cpp @@ -940,11 +940,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam // due to some bug in windows, the arrow button width from the resource gets ignored, so we have to set it here SetWindowPos(GetDlgItem(hDlg,ID_WATCHES_UPDOWN), 0,0,0, 30,60, SWP_NOMOVE); - - if (AutoRWLoad) OpenRWRecentFile(0); - Update_RAM_Watch(); - DragAcceptFiles(hDlg, TRUE); return true;