PSX multitap

Hi everyone,

I’m the personn who has develop the libretro-pcsx_rearmed-multitap version in this git repository https://github.com/dankcushions/pcsx_rearmed (thank’s for dankcushions for hosting the branch code).

i will modify my code to merge the two branch inside only once. dankcushions says to me in this thread (https://github.com/libretro/pcsx_rearmed/issues/38#issuecomment-217828945) that we can override some configuration option for a game and suggest me to create an option in retroarch/libretro for enabled disabled the multitap support in pcsx_rearmed. this is not a bad idea and i will to made that. we can have once project and the multitap support is managed by a configuration file per game. if exists a config option like :

{ “pcsx_rearmed_multitap1”, “Multitap 1 Connected; disabled|enabled” }, { “pcsx_rearmed_multitap2”, “Multitap 2 Connected; disabled|enabled” },I can check this in pcsx rearmed and emulate the multitap or not.

I need some help, i have no idee how to declare this options, how to check if a config files exists and how in retroarch that be made. I would like to improve my code and pull it in libretro/pcsx_rearmed branch to support the multitap in all game and activate it for several game.

Thx,

Alexis.

PS : Alexis-puska(github) and alex54 is the same person : me

The easiest way to do it would be through a “core option” which can be configured at runtime and RetroArch already has a way to create one for a specific game through the GUI and will check for them automatically.

You can find examples in this beetle-psx libretro.cpp file:

It’s pretty complex, though, so you might learn more from a simpler one:

It should also be noted that beetle-psx is the only core to my knowledge that exposes the connect of the multi-tap as a core option, all other cores appear to expose it as peripherals to connect like a joypad. I’ve always thought that situation was odd as I find the beetle-psx way to be much simpler to use. For the Genesis-GX for example you have the multitap + 3button controller and multitap + 6 button controller as options you have to choose between rather than just having multitap = yes in the core config and then whatever controller you want in whatever ports.