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:
parent
1f6b5a2f6d
commit
2915400b9b
|
@ -2610,9 +2610,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
sprintf(str, "Recent Watch %d", i+1);
|
sprintf(str, "Recent Watch %d", i+1);
|
||||||
WritePrivateProfileString("Watches", str, &rw_recent_files[i][0], IniName);
|
WritePrivateProfileString("Watches", str, &rw_recent_files[i][0], IniName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//TODO: save Auto-load bool value
|
|
||||||
ExitRunLoop();
|
ExitRunLoop();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -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
|
// 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);
|
SetWindowPos(GetDlgItem(hDlg,ID_WATCHES_UPDOWN), 0,0,0, 30,60, SWP_NOMOVE);
|
||||||
|
|
||||||
|
if (AutoRWLoad) OpenRWRecentFile(0);
|
||||||
|
|
||||||
Update_RAM_Watch();
|
Update_RAM_Watch();
|
||||||
|
|
||||||
DragAcceptFiles(hDlg, TRUE);
|
DragAcceptFiles(hDlg, TRUE);
|
||||||
|
|
Loading…
Reference in New Issue