From 3775d06c3719616da4554c12e5cc28b1dfcde976 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Fri, 18 Jun 2021 09:02:39 +0500 Subject: [PATCH] Fix the PnP gameport --- src/game/gameport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/gameport.c b/src/game/gameport.c index a3ebd3a99..16e5a1d74 100644 --- a/src/game/gameport.c +++ b/src/game/gameport.c @@ -408,7 +408,7 @@ gameport_init(const device_t *info) gameport_remap(dev, info->local & 0xffff); /* Register ISAPnP if this is a standard game port card. */ - if (info->local == 0x200) + if ((info->local & 0xffff) == 0x200) isapnp_set_device_defaults(isapnp_add_card(gameport_pnp_rom, sizeof(gameport_pnp_rom), gameport_pnp_config_changed, NULL, NULL, NULL, dev), 0, gameport_pnp_defaults); return dev;