Add RetroPie configs backup from /opt/retropie/configs
키 설정·패드 매핑·에뮬 설정을 sync-configs.sh로 동기화. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
8
configs/msx/emulators.cfg
Normal file
8
configs/msx/emulators.cfg
Normal file
@@ -0,0 +1,8 @@
|
||||
lr-fbneo-msx = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fbneo/fbneo_libretro.so --subsystem msx --config /opt/retropie/configs/msx/retroarch.cfg %ROM%"
|
||||
default = "lr-fmsx"
|
||||
openmsx = "/opt/retropie/emulators/openmsx/bin/openmsx %ROM%"
|
||||
openmsx-msx2 = "/opt/retropie/emulators/openmsx/bin/openmsx -machine 'Boosted_MSX2_EN' %ROM%"
|
||||
openmsx-msx2-plus = "/opt/retropie/emulators/openmsx/bin/openmsx -machine 'Boosted_MSX2+_JP' %ROM%"
|
||||
openmsx-msx-turbor = "/opt/retropie/emulators/openmsx/bin/openmsx -machine 'Panasonic_FS-A1GT' %ROM%"
|
||||
lr-bluemsx = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-bluemsx/bluemsx_libretro.so --config /opt/retropie/configs/msx/retroarch.cfg %ROM%"
|
||||
lr-fmsx = "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fmsx/fmsx_libretro.so --config /opt/retropie/configs/msx/retroarch.cfg %ROM%"
|
||||
2
configs/msx/fmsx/Antarctic Adventure (Japan).rmp
Normal file
2
configs/msx/fmsx/Antarctic Adventure (Japan).rmp
Normal file
@@ -0,0 +1,2 @@
|
||||
input_libretro_device_p1 = "1"
|
||||
input_player1_analog_dpad_mode = "1"
|
||||
2
configs/msx/fmsx/fmsx.rmp
Normal file
2
configs/msx/fmsx/fmsx.rmp
Normal file
@@ -0,0 +1,2 @@
|
||||
input_libretro_device_p1 = "1"
|
||||
input_player1_analog_dpad_mode = "1"
|
||||
@@ -0,0 +1,23 @@
|
||||
proc auto_config_joypad { } {
|
||||
# clear existing joypad configuration
|
||||
global joystick1_config
|
||||
dict for {btn binding} $joystick1_config { dict set joystick1_config $btn {} }
|
||||
|
||||
bind_default "joy1 button2 down" "keymatrixdown 6 0x20"
|
||||
bind_default "joy1 button2 up" "keymatrixup 6 0x20"
|
||||
bind_default "joy1 button3 down" "keymatrixdown 6 0x40"
|
||||
bind_default "joy1 button3 up" "keymatrixup 6 0x40"
|
||||
bind_default "joy1 button6 down" "main_menu_open"
|
||||
bind_default "joy1 button7 down" "toggle_osd_keyboard"
|
||||
bind "joy1 button6 down" -layer osd_menu "main_menu_close"
|
||||
dict lappend joystick1_config A button1
|
||||
dict lappend joystick1_config B button0
|
||||
dict lappend joystick1_config DOWN +axis1
|
||||
dict lappend joystick1_config DOWN D_hat0
|
||||
dict lappend joystick1_config LEFT -axis0
|
||||
dict lappend joystick1_config LEFT L_hat0
|
||||
dict lappend joystick1_config RIGHT +axis0
|
||||
dict lappend joystick1_config RIGHT R_hat0
|
||||
dict lappend joystick1_config UP -axis1
|
||||
dict lappend joystick1_config UP U_hat0
|
||||
}
|
||||
17
configs/msx/openmsx/share/joystick/Pro Controller.tcl
Normal file
17
configs/msx/openmsx/share/joystick/Pro Controller.tcl
Normal file
@@ -0,0 +1,17 @@
|
||||
proc auto_config_joypad { } {
|
||||
# clear existing joypad configuration
|
||||
global joystick1_config
|
||||
dict for {btn binding} $joystick1_config { dict set joystick1_config $btn {} }
|
||||
|
||||
bind_default "joy1 button2 down" "toggle_osd_keyboard"
|
||||
bind_default "joy1 button3 down" "keymatrixdown 6 0x40"
|
||||
bind_default "joy1 button3 up" "keymatrixup 6 0x40"
|
||||
bind_default "joy1 button4 down" "main_menu_open"
|
||||
bind "joy1 button4 down" -layer osd_menu "main_menu_close"
|
||||
dict lappend joystick1_config A button1
|
||||
dict lappend joystick1_config B button0
|
||||
dict lappend joystick1_config DOWN -axis1
|
||||
dict lappend joystick1_config LEFT -axis0
|
||||
dict lappend joystick1_config RIGHT +axis0
|
||||
dict lappend joystick1_config UP +axis1
|
||||
}
|
||||
16
configs/msx/openmsx/share/joystick/README.txt
Normal file
16
configs/msx/openmsx/share/joystick/README.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
This folder contains joypad configuration scripts, generated by EmulationStation's input configuration.
|
||||
They are read by openMSX at start-up and loaded automatically when the corresponding joypad is plugged in.
|
||||
|
||||
If you wish to have a game specific joystick configuration, you can override the gamepad's configuration by:
|
||||
* copy an already existing controller '.tcl' configuration file to the 'game' subfolder.
|
||||
* edit the file and adjust the 'bind_default' commands or the 'joystick1_config' configuration.
|
||||
See the openMSX documentation for how to use those commands:
|
||||
- http://openmsx.org/manual/commands.html#bind
|
||||
- https://openmsx.org/manual/commands.html#joystickN_config
|
||||
- http://map.grauw.nl/articles/keymatrix.php
|
||||
* rename the new '.tcl' file so the name is similar to the disk/tape/rom name (i.e. 'Metal Gear.zip' will load 'Metal Gear.tcl').
|
||||
If you are not sure which name to use, start the game, then press 'F10' and type 'guess_title', followed by Enter.
|
||||
openMSX will print the content name, which you can then use as a filename for the override configuration file.
|
||||
NOTE: special characters '(:?/\*)', are automatically striped from the name so if your content file is 'ABC?.dsk',
|
||||
then the configuration file should be 'ABC.tcl'.
|
||||
|
||||
44
configs/msx/openmsx/share/scripts/retropie-init.tcl
Normal file
44
configs/msx/openmsx/share/scripts/retropie-init.tcl
Normal file
@@ -0,0 +1,44 @@
|
||||
namespace eval retropie {
|
||||
|
||||
proc init {} {
|
||||
set rom_name [guess_title]
|
||||
set config_dir [file normalize "$::env(OPENMSX_USER_DATA)/joystick"]
|
||||
|
||||
# sanitize the rom name
|
||||
regsub -all {[:><?\"\/\\|*]} $rom_name "" rom_name
|
||||
|
||||
# auto-configure the 1st plugged in joystick, but only if present
|
||||
# openMSX automatically loads the plugged in joysticks in 'autoplug.tcl'
|
||||
if {![info exists ::joystick1_config]} {
|
||||
return
|
||||
}
|
||||
|
||||
if { !($rom_name eq "") } {
|
||||
if { [ file exists "$config_dir/game/$rom_name.tcl" ] } {
|
||||
load_config_joystick $rom_name "$config_dir/game/$rom_name.tcl"
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
# get the 1st joystick name
|
||||
set joy_name [machine_info pluggable joystick1]
|
||||
# ... and sanitize it
|
||||
regsub -all {[:><?\"\/\\|*]} $joy_name "" joy_name
|
||||
if { [file exists "$config_dir/$joy_name.tcl"] } {
|
||||
load_config_joystick $joy_name "$config_dir/$joy_name.tcl"
|
||||
}
|
||||
}
|
||||
|
||||
proc load_config_joystick { conf_name conf_script } {
|
||||
source "$conf_script"
|
||||
# check for the joypad auto-configuration function
|
||||
if { [info procs "auto_config_joypad"] == "" } {
|
||||
return
|
||||
}
|
||||
auto_config_joypad
|
||||
message "Loaded joystick configuration for '$conf_name'"
|
||||
}
|
||||
|
||||
}; # namespace: retropie
|
||||
|
||||
after boot retropie::init
|
||||
12
configs/msx/openmsx/share/settings.xml
Normal file
12
configs/msx/openmsx/share/settings.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE settings SYSTEM 'settings.dtd'>
|
||||
<settings>
|
||||
<settings>
|
||||
<setting id="default_machine">C-BIOS_MSX</setting>
|
||||
<setting id="osd_disk_path">/home/hoon/RetroPie/roms/msx</setting>
|
||||
<setting id="osd_rom_path">/home/hoon/RetroPie/roms/msx</setting>
|
||||
<setting id="osd_tape_path">/home/hoon/RetroPie/roms/msx</setting>
|
||||
<setting id="osd_hdd_path">/home/hoon/RetroPie/roms/msx</setting>
|
||||
<setting id="fullscreen">true</setting>
|
||||
<setting id="save_settings_on_exit">false</setting> <setting id="auto_enable_reverse">off</setting
|
||||
</settings>
|
||||
</settings>
|
||||
38
configs/msx/retroarch.cfg
Normal file
38
configs/msx/retroarch.cfg
Normal file
@@ -0,0 +1,38 @@
|
||||
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
|
||||
# BUT for input binds, place AFTER #include so they override global retroarch.cfg
|
||||
|
||||
input_remapping_directory = "/opt/retropie/configs/msx"
|
||||
|
||||
|
||||
# 8BitDo Ultimate — MSX에서 패드 입력 (include 뒤에 있어야 global보다 우선)
|
||||
input_player1_b_btn = "0"
|
||||
input_player1_a_btn = "1"
|
||||
input_player1_y_btn = "2"
|
||||
input_player1_x_btn = "3"
|
||||
input_player1_l_btn = "4"
|
||||
input_player1_r_btn = "5"
|
||||
input_player1_select_btn = "6"
|
||||
input_player1_start_btn = "7"
|
||||
input_player1_l3_btn = "9"
|
||||
input_player1_r3_btn = "10"
|
||||
input_player1_up_btn = "h0up"
|
||||
input_player1_down_btn = "h0down"
|
||||
input_player1_left_btn = "h0left"
|
||||
input_player1_right_btn = "h0right"
|
||||
input_player1_l_x_plus_axis = "+0"
|
||||
input_player1_l_x_minus_axis = "-0"
|
||||
input_player1_l_y_plus_axis = "+1"
|
||||
input_player1_l_y_minus_axis = "-1"
|
||||
input_player1_r_x_plus_axis = "+3"
|
||||
input_player1_r_x_minus_axis = "-3"
|
||||
input_player1_r_y_plus_axis = "+4"
|
||||
input_player1_r_y_minus_axis = "-4"
|
||||
input_player1_analog_dpad_mode = "1"
|
||||
input_enable_hotkey_btn = "6"
|
||||
input_exit_emulator_btn = "7"
|
||||
input_menu_toggle_btn = "8"
|
||||
|
||||
# fMSX: Joystick + Emulated Keyboard (패드로 MSX 키보드 입력 가능)
|
||||
input_libretro_device_p1 = "1"
|
||||
input_player1_analog_dpad_mode = "1"
|
||||
#include "/opt/retropie/configs/all/retroarch.cfg"
|
||||
Reference in New Issue
Block a user