Replace a couple more machine internal name anchors with the init function

This commit is contained in:
RichardG867
2025-12-20 19:02:29 -03:00
parent 6ad22de54b
commit 4af49b4f9b
2 changed files with 2 additions and 3 deletions

View File

@@ -408,8 +408,7 @@ load_machine(void)
p = ini_section_get_string(cat, "cpu_family", NULL);
if (p) {
/* Migrate CPU family changes. */
if ((!strcmp(machines[machine].internal_name, "deskpro386") ||
!strcmp(machines[machine].internal_name, "deskpro386_05_1988")))
if (machines[machine].init == machine_at_deskpro386_init)
cpu_f = cpu_get_family("i386dx_deskpro386");
else
cpu_f = cpu_get_family(p);

View File

@@ -204,7 +204,7 @@ postcard_init(UNUSED(const device_t *info))
postcard_port = 0x84; /* ISA Compaq machines */
else if (strstr(machines[machine].name, "Olivetti"))
postcard_port = 0x378; /* Olivetti machines */
else if (!strcmp(machines[machine].internal_name, "isa486c"))
else if (machines[machine].init == machine_at_isa486c_init)
postcard_port = 0x5080; /* ASUS ISA-486C */
else
postcard_port = 0x80; /* AT and clone machines */