From 72a492b2433437deb8f044d465dcdc93dcddbbc2 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Wed, 27 Oct 2021 04:22:51 +0500 Subject: [PATCH] Limit the selection of the standalone MPU-401 to machines with either ISA or MCA bus available --- src/win/win_settings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index da91c271d..e484ff71a 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -1258,6 +1258,9 @@ mpu401_standalone_allow(void) { 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); mdin = midi_in_device_get_internal_name(temp_midi_input_device);