The ISA memory board and ISA RTC card types are now initialized to none in config.c before loading the configuration file;
Some more bug fixes in win_settings.c.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||
* running old operating systems and software designed for IBM
|
||||
* PC systems and compatibles from 1981 through fairly recent
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Configuration file handler.
|
||||
*
|
||||
* Version: @(#)config.c 1.0.50 2018/09/02
|
||||
* Version: @(#)config.c 1.0.51 2018/09/03
|
||||
*
|
||||
* Authors: Sarah Walker,
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -1334,6 +1334,9 @@ config_load(void)
|
||||
}
|
||||
mem_size = 640;
|
||||
opl_type = 0;
|
||||
isartc_type = 0;
|
||||
for (i = 0; i < ISAMEM_MAX; i++)
|
||||
isamem_type[i] = 0;
|
||||
|
||||
config_log("Config file not present or invalid!\n");
|
||||
return;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Windows 86Box Settings dialog handler.
|
||||
*
|
||||
* Version: @(#)win_settings.c 1.0.54 2018/09/03
|
||||
* Version: @(#)win_settings.c 1.0.55 2018/09/03
|
||||
*
|
||||
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||
* David Hrdlička, <hrdlickadavid@outlook.com>
|
||||
@@ -1782,7 +1782,15 @@ win_settings_peripherals_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lPa
|
||||
strcpy(temp_hdc_name, "none");
|
||||
|
||||
h = GetDlgItem(hdlg, IDC_COMBO_SCSI);
|
||||
temp_scsi_card = settings_list_to_device[SendMessage(h, CB_GETCURSEL, 0, 0)];
|
||||
temp_scsi_card = settings_list_to_device[0][SendMessage(h, CB_GETCURSEL, 0, 0)];
|
||||
|
||||
h = GetDlgItem(hdlg, IDC_COMBO_ISARTC);
|
||||
temp_isartc = settings_list_to_device[1][SendMessage(h, CB_GETCURSEL, 0, 0)];
|
||||
|
||||
for (e = 0; e < ISAMEM_MAX; e++) {
|
||||
h = GetDlgItem(hdlg, IDC_COMBO_ISAMEM_1 + e);
|
||||
temp_isamem[e] = settings_list_to_device[2 + e][SendMessage(h, CB_GETCURSEL, 0, 0)];
|
||||
}
|
||||
|
||||
h = GetDlgItem(hdlg, IDC_CHECK_IDE_TER);
|
||||
temp_ide_ter = SendMessage(h, BM_GETCHECK, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user