cizia64 / CrossMix-OS

Enhanced OS for the TrimUI Smart Pro
GNU General Public License v3.0
223 stars 28 forks source link

Add vertical mode to Mame #66

Open dxdatabase opened 3 months ago

dxdatabase commented 3 months ago

Using the right stick and buttons make the Trimui a very good vertical arcade machine. But Mame is configured with horizontal screen (If I remember original firmware have an vertical arcade section)... It can be done in retroarch for specific game, but it's a pain in the a**

IMG_20240705_074228484

I tried to modify the Mame 2003 plus config.json to add a link to an vertical launcher script (inspired by mupen64plus_wide.sh), but Mame icon disappear on emulators screen :(

Is it possible to add alternate launch mode with X button ? Here is the modification to the retroarch setting for vertical screen in Mame :

#Rotate screen
custom_viewport_height = "864"
custom_viewport_width = "896"
input_overlay = "./.retroarch/overlay/MAME2003PLUS_max-ratio.cfg"
input_player1_analog_dpad_mode = "2"
video_rotation = "1"

#Assign keys
input_libretro_device_p1 = "1"
input_libretro_device_p2 = "1"
input_libretro_device_p3 = "1"
input_libretro_device_p4 = "1"
input_libretro_device_p5 = "1"
input_player1_analog_dpad_mode = "2"
input_player1_stk_r_x+ = "5"
input_player1_stk_r_x- = "4"
input_player1_stk_r_y+ = "6"
input_player1_stk_r_y- = "7"
input_player2_analog_dpad_mode = "0"
input_player3_analog_dpad_mode = "0"
input_player4_analog_dpad_mode = "0"
input_player5_analog_dpad_mode = "0"
input_remap_port_p1 = "0"
input_remap_port_p2 = "1"
input_remap_port_p3 = "2"
input_remap_port_p4 = "3"
input_remap_port_p5 = "4"
cizia64 commented 3 months ago

Good idea ! if your emulator icon disappear when you modify your config.json it means that you have an error (editing it with vscode can help to reveal errors). It's often an additional "," or something like that ;). I will take a look to this idea.