Machine can now be configured from selection dialogue.

This commit is contained in:
SarahW 2017-05-06 20:45:44 +01:00
commit beecfd8381
4 changed files with 70 additions and 5 deletions

View file

@ -458,7 +458,7 @@ static BOOL CALLBACK hdconf_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPAR
case IDOK:
if (hd_changed || cdrom_channel != new_cdrom_channel)
{
if (MessageBox(NULL, "This will reset PCem!\nOkay to continue?", "PCem", MB_OKCANCEL) == IDOK)
if (!has_been_inited || MessageBox(NULL, "This will reset PCem!\nOkay to continue?", "PCem", MB_OKCANCEL) == IDOK)
{
h = GetDlgItem(hdlg, IDC_EDIT_C_SPT);
SendMessage(h, WM_GETTEXT, 255, (LPARAM)s);
@ -514,10 +514,13 @@ static BOOL CALLBACK hdconf_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPAR
hdc[3] = hd[3];
cdrom_channel = new_cdrom_channel;
saveconfig(NULL);
if (has_been_inited)
{
saveconfig(NULL);
resetpchard();
resetpchard();
}
}
}
case IDCANCEL: