win32: fix auto ramwatch load getting ignored (and making it always autoload)

This commit is contained in:
zeromus 2009-05-08 05:32:00 +00:00
parent 7c24040c97
commit f068dfda3b
1 changed files with 4 additions and 1 deletions

View File

@ -1368,9 +1368,12 @@ BOOL LoadROM(char * filename, const char *cflash_disk_image)
lagframecounter=0;
UpdateRecentRoms(filename);
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
OpenRWRecentFile(0);
RamWatchHWnd = CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_RAMWATCH), MainWindow->getHWnd(), (DLGPROC) RamWatchProc);
}
return TRUE;
}