Limit the selection of the standalone MPU-401 to machines with either ISA or MCA bus available

This commit is contained in:
Alexander Babikov
2021-10-27 04:22:51 +05:00
parent a6af62835b
commit 72a492b243

View File

@@ -1258,6 +1258,9 @@ mpu401_standalone_allow(void)
{ {
char *md, *mdin; char *md, *mdin;
if (!machine_has_bus(temp_machine, MACHINE_BUS_ISA) && !machine_has_bus(temp_machine, MACHINE_BUS_MCA))
return 0;
md = midi_device_get_internal_name(temp_midi_device); md = midi_device_get_internal_name(temp_midi_device);
mdin = midi_in_device_get_internal_name(temp_midi_input_device); mdin = midi_in_device_get_internal_name(temp_midi_input_device);