Change the internal name for VLB IDE controllers

This should fix an issue with HDDs and CD-ROMs connected
to those controllers not appearing in the status bar.
This commit is contained in:
Alexander Babikov
2021-05-26 18:13:01 +05:00
parent 2fe162dacc
commit 594c355940
2 changed files with 10 additions and 2 deletions

View File

@@ -1040,6 +1040,10 @@ load_storage_controllers(void)
hdc_current = hdc_get_from_internal_name("st506_xt_dtc5150x");
else if (!strcmp(p, "mfm_at"))
hdc_current = hdc_get_from_internal_name("st506_at");
else if (!strcmp(p, "vlb_isa"))
hdc_current = hdc_get_from_internal_name("ide_vlb");
else if (!strcmp(p, "vlb_isa_2ch"))
hdc_current = hdc_get_from_internal_name("ide_vlb_2ch");
else
hdc_current = hdc_get_from_internal_name(p);
@@ -1741,6 +1745,10 @@ load_other_peripherals(void)
hdc_current = hdc_get_from_internal_name("st506_xt_dtc5150x");
else if (!strcmp(p, "mfm_at"))
hdc_current = hdc_get_from_internal_name("st506_at");
else if (!strcmp(p, "vlb_isa"))
hdc_current = hdc_get_from_internal_name("ide_vlb");
else if (!strcmp(p, "vlb_isa_2ch"))
hdc_current = hdc_get_from_internal_name("ide_vlb_2ch");
else
hdc_current = hdc_get_from_internal_name(p);
config_delete_var(cat, "hdc");

View File

@@ -118,8 +118,8 @@ static const struct {
{ "esdi_mca", &esdi_ps2_device },
{ "ide_pci", &ide_pci_device },
{ "ide_pci_2ch", &ide_pci_2ch_device },
{ "vlb_isa", &ide_vlb_device },
{ "vlb_isa_2ch", &ide_vlb_2ch_device },
{ "ide_vlb", &ide_vlb_device },
{ "ide_vlb_2ch", &ide_vlb_2ch_device },
{ "", NULL }
};