Skip to content

Commit

Permalink
Actually enable gameport on init on non-PnP SB16/AWE32
Browse files Browse the repository at this point in the history
  • Loading branch information
lemondrops committed Dec 30, 2023
1 parent bfee63d commit 4129c99
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 4129c99

Please sign in to comment.