machinetnt: Chaos is optional.

It's not used for Power Mac 9500/9600.
This commit is contained in:
joevt 2024-04-15 13:53:24 -07:00 committed by dingusdev
parent 3124b10eaa
commit bf4ee72c0f

View File

@ -73,7 +73,7 @@ int initialize_tnt(std::string& id)
DEV_FUN(0x10,0), gc_obj);
// get video PCI controller object
PCIHost *vci_host = dynamic_cast<PCIHost*>(gMachineObj->get_comp_by_name("Chaos"));
PCIHost *vci_host = dynamic_cast<PCIHost*>(gMachineObj->get_comp_by_name_optional("Chaos"));
if (vci_host) {
vci_host->set_irq_map(chaos_irq_map);
// connect built-in video device to the VCI bus