Fix MKE bus channels 2 and 3 not being usable

This commit is contained in:
Alexander Babikov
2025-07-30 16:22:26 +05:00
parent 9cb99ed476
commit 81ac0d786e

View File

@@ -1396,7 +1396,7 @@ load_floppy_and_cdrom_drives(void)
cdrom_set_type(c, cdrom_get_from_internal_name("cr563_075")); cdrom_set_type(c, cdrom_get_from_internal_name("cr563_075"));
sprintf(temp, "cdrom_%02i_mke_channel", c + 1); sprintf(temp, "cdrom_%02i_mke_channel", c + 1);
cdrom[c].mke_channel = !!ini_section_get_int(cat, temp, c & 3); cdrom[c].mke_channel = ini_section_get_int(cat, temp, c & 3);
if (cdrom[c].mke_channel > 3) if (cdrom[c].mke_channel > 3)
cdrom[c].mke_channel = 3; cdrom[c].mke_channel = 3;