Migrate remaining machine-specific checks from internal name to init function

This commit is contained in:
RichardG867
2025-09-19 19:41:01 -03:00
parent 9b5f4ba7b1
commit 25146643f9
22 changed files with 47 additions and 45 deletions

View File

@@ -123,7 +123,7 @@ SettingsInput::onCurrentMachineChanged(int machineId)
int ikbd = (i == KEYBOARD_TYPE_INTERNAL);
int pc5086_filter = (strstr(keyboard_get_internal_name(i), "ps") &&
strstr(machine_get_internal_name_ex(machineId), "pc5086"));
machines[machineId].init == machine_xt_pc5086_init);
if ((ikbd != has_int_kbd) || !device_is_valid(dev, machineId) || pc5086_filter)
continue;