Add gameport to Soundblaster Pro v1 and v2
This commit is contained in:
@@ -3042,6 +3042,12 @@ sb_pro_v1_init(UNUSED(const device_t *info))
|
|||||||
if (device_get_config_int("receive_input"))
|
if (device_get_config_int("receive_input"))
|
||||||
midi_in_handler(1, sb_dsp_input_msg, sb_dsp_input_sysex, &sb->dsp);
|
midi_in_handler(1, sb_dsp_input_msg, sb_dsp_input_sysex, &sb->dsp);
|
||||||
|
|
||||||
|
if (device_get_config_int("gameport")) {
|
||||||
|
sb->gameport = gameport_add(&gameport_device);
|
||||||
|
sb->gameport_addr = 0x200;
|
||||||
|
gameport_remap(sb->gameport, sb->gameport_addr);
|
||||||
|
}
|
||||||
|
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3096,6 +3102,12 @@ sb_pro_v2_init(UNUSED(const device_t *info))
|
|||||||
if (device_get_config_int("receive_input"))
|
if (device_get_config_int("receive_input"))
|
||||||
midi_in_handler(1, sb_dsp_input_msg, sb_dsp_input_sysex, &sb->dsp);
|
midi_in_handler(1, sb_dsp_input_msg, sb_dsp_input_sysex, &sb->dsp);
|
||||||
|
|
||||||
|
if (device_get_config_int("gameport")) {
|
||||||
|
sb->gameport = gameport_add(&gameport_device);
|
||||||
|
sb->gameport_addr = 0x200;
|
||||||
|
gameport_remap(sb->gameport, sb->gameport_addr);
|
||||||
|
}
|
||||||
|
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4465,6 +4477,17 @@ static const device_config_t sb_pro_config[] = {
|
|||||||
},
|
},
|
||||||
.bios = { { 0 } }
|
.bios = { { 0 } }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.name = "gameport",
|
||||||
|
.description = "Enable Game port",
|
||||||
|
.type = CONFIG_BINARY,
|
||||||
|
.default_string = NULL,
|
||||||
|
.default_int = 0,
|
||||||
|
.file_filter = NULL,
|
||||||
|
.spinner = { 0 },
|
||||||
|
.selection = { { 0 } },
|
||||||
|
.bios = { { 0 } }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.name = "opl",
|
.name = "opl",
|
||||||
.description = "Enable OPL",
|
.description = "Enable OPL",
|
||||||
|
|||||||
Reference in New Issue
Block a user