Merge pull request #1496 from lemondrops/bugfix/pnp_gameport

Fix the PnP gameport
This commit is contained in:
Miran Grča
2021-06-18 17:40:35 +02:00
committed by GitHub

View File

@@ -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;