Win32 - Ramwatch - autoload now auto-loads the watch file. However, only when opening the dialog manually, not when desmume main does.

This commit is contained in:
adelikat 2009-05-07 16:41:51 +00:00
parent 1f6b5a2f6d
commit 2915400b9b
2 changed files with 4 additions and 4 deletions

View File

@ -2610,9 +2610,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
sprintf(str, "Recent Watch %d", i+1);
WritePrivateProfileString("Watches", str, &rw_recent_files[i][0], IniName);
}
//TODO: save Auto-load bool value
ExitRunLoop();
}
else

View File

@ -940,7 +940,9 @@ 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);