Merge pull request #2892 from Cacodemon345/patch-110

OPTiMC: Gameport remains enabled at startup
This commit is contained in:
Miran Grča
2022-11-24 20:51:24 +01:00
committed by GitHub

View File

@@ -342,7 +342,7 @@ optimc_init(const device_t *info)
optimc->cur_mpu401_addr = 0x330;
optimc->cur_mpu401_enabled = 1;
optimc->regs[0] = ((device_get_config_int("gameport")) ? 0x01 : 0x00);
optimc->regs[0] = 0x00;
optimc->regs[1] = 0x03;
optimc->regs[2] = 0x00;
optimc->regs[3] = 0x00;
@@ -427,12 +427,6 @@ mirosound_pcm10_available(void)
static const device_config_t acermagic_s20_config[] = {
// clang-format off
{
.name = "gameport",
.description = "Gameport",
.type = CONFIG_BINARY,
.default_int = 0
},
{
.name = "receive_input",
.description = "Receive input (SB MIDI)",
@@ -477,4 +471,4 @@ const device_t mirosound_pcm10_device = {
.speed_changed = optimc_speed_changed,
.force_redraw = NULL,
.config = acermagic_s20_config
};
};