mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 04:45:31 -07:00
Replace a couple more machine internal name anchors with the init function
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user