ChimeraOS / chimera

A web interface for managing Steam remotely
MIT License
231 stars 26 forks source link

custom wii.cfg is overridden #278

Closed ukos-git closed 1 year ago

ukos-git commented 1 year ago

I have placed a custom wii.cfg for dolphin libretro core in ~/.config/chimera/wii.cfg:

$ cat ~/.config/chimera/wii.cfg
video_driver = "vulkan"
dolphin_widescreen = "enabled"
dolphin_widescreen_hack = "disabled"
dolphin_efb_scale = "x6 (3840 x 3168)"
dolphin_max_anisotropy = "16x"
dolphin_anti_aliasing = "8x SSAA"
dolphin_load_custom_textures = "enabled"
dolphin_cache_custom_textures = "enabled"
dolphin_alt_gc_ports_on_wii = "disabled"
dolphin_wiimote_continuous_scanning = "disabled"
dolphin_log_level = "Info"
input_libretro_device_p1 = "513"
input_libretro_device_p2 = "513"
input_libretro_device_p3 = "513"
input_libretro_device_p4 = "513"
input_libretro_device_p5 = "1"

After starting the launcher, the content of the file is modified to contain only the input sections no "dolphin" sections.

$ launcher wii dolphin test.iso
$ cat ~/.config/chimera/wii.cfg
input_libretro_device_p1 = "513"
input_libretro_device_p2 = "513"
input_libretro_device_p3 = "513"
input_libretro_device_p4 = "513"
input_libretro_device_p5 = "1"
input_player1_analog_dpad_mode = "1"
input_player2_analog_dpad_mode = "1"
input_player3_analog_dpad_mode = "1"
input_player4_analog_dpad_mode = "1"
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"

The problem is that in 2ae1c91ba1713dfabef838f4442e247060de1041 @alkazar uses ln to link the wii.cfg to the gamepad mapping override directory and libretro then filters the content of the wii.cfg in the original place: https://github.com/ChimeraOS/chimera/blob/29e59a08ade9cd6086fcbe3506d485bfc9277e9a/bin/launcher#L49

I would suggest a cp -f here.