fix small bug in rescan romset button

This commit is contained in:
dinkc64 2014-07-25 18:35:02 +00:00
parent 866c43df91
commit 1d2229747c
1 changed files with 12 additions and 11 deletions

View File

@ -2372,17 +2372,6 @@ static INT_PTR CALLBACK RomInfoDialogProc(HWND hDlg, UINT Msg, WPARAM wParam, LP
switch (BzipOpen(1)) {
case 0:
gameAv[nRInBurnDrvActive] = 3;
{ // if the romset is OK, just say so in the rom info dialog (instead of popping up a window)
HWND hList = GetDlgItem(hDlg, IDC_LIST1);
LV_ITEM LvItem;
memset(&LvItem, 0, sizeof(LvItem));
LvItem.mask= LVIF_TEXT;
LvItem.cchTextMax = 256;
LvItem.iSubItem = 4;
LvItem.pszText = _T("Romset OK!");
SendMessage(hList, LVM_SETITEM, 0, (LPARAM)&LvItem);
UpdateWindow(hDlg);
}
break;
case 2:
gameAv[nRInBurnDrvActive] = 1;
@ -2399,6 +2388,18 @@ static INT_PTR CALLBACK RomInfoDialogProc(HWND hDlg, UINT Msg, WPARAM wParam, LP
}
break;
}
if (gameAv[nRInBurnDrvActive] > 0) {
// if the romset is OK, just say so in the rom info dialog (instead of popping up a window)
HWND hList = GetDlgItem(hDlg, IDC_LIST1);
LV_ITEM LvItem;
memset(&LvItem, 0, sizeof(LvItem));
LvItem.mask= LVIF_TEXT;
LvItem.cchTextMax = 256;
LvItem.iSubItem = 4;
LvItem.pszText = _T("Romset OK!");
SendMessage(hList, LVM_SETITEM, 0, (LPARAM)&LvItem);
UpdateWindow(hDlg);
}
BzipClose();
WriteGameAvb();
return 0;