Skip to content

Commit

Permalink
Merge pull request 86Box#3965 from lemondrops/sb16_gameport_fix
Browse files Browse the repository at this point in the history
Actually enable gameport on init on non-PnP SB16/AWE32
  • Loading branch information
OBattler authored Dec 30, 2023
2 parents bfee63d + 4129c99 commit de2f347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sound/snd_sb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2141,6 +2141,7 @@ sb_16_init(UNUSED(const device_t *info))

sb->gameport = gameport_add(&gameport_pnp_device);
sb->gameport_addr = 0x200;
gameport_remap(sb->gameport, sb->gameport_addr);

return sb;
}
Expand Down Expand Up @@ -2352,6 +2353,7 @@ sb_16_compat_init(const device_t *info)

sb->gameport = gameport_add(&gameport_pnp_device);
sb->gameport_addr = 0x200;
gameport_remap(sb->gameport, sb->gameport_addr);

return sb;
}
Expand Down Expand Up @@ -2455,6 +2457,7 @@ sb_awe32_init(UNUSED(const device_t *info))

sb->gameport = gameport_add(&gameport_pnp_device);
sb->gameport_addr = 0x200;
gameport_remap(sb->gameport, sb->gameport_addr);

return sb;
}
Expand Down

0 comments on commit de2f347

Please sign in to comment.