The Settings dialog now once again omits the "Internal" option for hard disk controller for machines without one.
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
/* Combined flags. */
|
/* Combined flags. */
|
||||||
#define MACHINE_VIDEO_FIXED 0x00003000 /* sys has fixed int video */
|
#define MACHINE_VIDEO_FIXED 0x00003000 /* sys has fixed int video */
|
||||||
/* Feature flags for internal storage controllers. */
|
/* Feature flags for internal storage controllers. */
|
||||||
#define MACHINE_HDC 0x0FFC0000 /* sys has int HDC */
|
#define MACHINE_HDC 0x07FC0000 /* sys has int HDC */
|
||||||
#define MACHINE_MFM 0x00100000 /* sys has int MFM/RLL */
|
#define MACHINE_MFM 0x00100000 /* sys has int MFM/RLL */
|
||||||
#define MACHINE_XTA 0x00200000 /* sys has int XTA */
|
#define MACHINE_XTA 0x00200000 /* sys has int XTA */
|
||||||
#define MACHINE_ESDI 0x00400000 /* sys has int ESDI */
|
#define MACHINE_ESDI 0x00400000 /* sys has int ESDI */
|
||||||
|
@@ -1523,6 +1523,12 @@ win_settings_storage_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
c = d = 0;
|
c = d = 0;
|
||||||
settings_reset_content(hdlg, IDC_COMBO_HDC);
|
settings_reset_content(hdlg, IDC_COMBO_HDC);
|
||||||
while (1) {
|
while (1) {
|
||||||
|
/* Skip "internal" if machine doesn't have it. */
|
||||||
|
if ((c == 1) && !(machines[temp_machine].flags & MACHINE_HDC)) {
|
||||||
|
c++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
generate_device_name(hdc_get_device(c), hdc_get_internal_name(c), 1);
|
generate_device_name(hdc_get_device(c), hdc_get_internal_name(c), 1);
|
||||||
|
|
||||||
if (!device_name[0])
|
if (!device_name[0])
|
||||||
|
Reference in New Issue
Block a user