From 4af49b4f9b750eb086956b707f0e95b1f1bcbc1f Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 20 Dec 2025 19:02:29 -0300 Subject: [PATCH] Replace a couple more machine internal name anchors with the init function --- src/config.c | 3 +-- src/device/postcard.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 27b5d25fe..d5deded9d 100644 --- a/src/config.c +++ b/src/config.c @@ -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); diff --git a/src/device/postcard.c b/src/device/postcard.c index 908adfe72..d94bc8ddf 100644 --- a/src/device/postcard.c +++ b/src/device/postcard.c @@ -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 */