Win32 - RamWatch - main window will load the watch file now
This commit is contained in:
parent
2915400b9b
commit
4485db61eb
|
@ -1369,7 +1369,8 @@ BOOL LoadROM(char * filename, const char *cflash_disk_image)
|
||||||
UpdateRecentRoms(filename);
|
UpdateRecentRoms(filename);
|
||||||
osd->setRotate(GPU_rotation);
|
osd->setRotate(GPU_rotation);
|
||||||
if (AutoRWLoad) //Open Ram Watch if its auto-load setting is checked
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
// 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);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue