SCUMMVM_LIBRETRO: added missing folders and config

This commit is contained in:
XargonWan 2024-03-07 13:56:31 +01:00
parent b862374617
commit c815e38acf
4 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,30 @@
[scummvm]
libretro_hooks_clear=false
iconspath=
mute=false
speech_volume=192
native_mt32=false
mt32_device=null
libretro_playlist_version=0
savepath=
confirm_exit=false
gui_use_game_language=false
extrapath=
gui_scale=100
gui_return_to_launcher_at_exit=false
gui_disable_fixed_font_scaling=false
fullscreen=true
gui_browser_show_hidden=false
browser_lastpath=
libretro_playlist_path=/var/config/retroarch/playlists
themepath=
sfx_volume=192
music_volume=192
autosave_period=300
gm_device=auto
music_driver=auto
opl_driver=auto
speech_mute=false
gui_language=en
libretro_hooks_location=0

View file

@ -68,6 +68,7 @@ es_settings="/var/config/ES-DE/settings/es_settings.xml"
raconf="/var/config/retroarch/retroarch.cfg" raconf="/var/config/retroarch/retroarch.cfg"
ra_core_conf="/var/config/retroarch/retroarch-core-options.cfg" ra_core_conf="/var/config/retroarch/retroarch-core-options.cfg"
ra_scummvm_conf="/var/config/retroarch/system/scummvm.ini"
# CEMU config files # CEMU config files

View file

@ -12,7 +12,7 @@ set_setting_value() {
case $4 in case $4 in
"retrodeck" | "melonds" ) "retrodeck" | "melonds" | "scummvm_libretro" )
if [[ -z $current_section_name ]]; then if [[ -z $current_section_name ]]; then
sed -i 's^\^'"$setting_name_to_change"'=.*^'"$setting_name_to_change"'='"$setting_value_to_change"'^' "$1" sed -i 's^\^'"$setting_name_to_change"'=.*^'"$setting_name_to_change"'='"$setting_value_to_change"'^' "$1"
else else

View file

@ -88,6 +88,18 @@ prepare_component() {
set_setting_value "$raconf" "savestate_directory" "$states_folder" "retroarch" set_setting_value "$raconf" "savestate_directory" "$states_folder" "retroarch"
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch" set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
set_setting_value "$raconf" "log_dir" "$logs_folder" "retroarch" set_setting_value "$raconf" "log_dir" "$logs_folder" "retroarch"
set_setting_value "$raconf" "rgui_browser_directory" $roms_folder "retroarch"
# Specific Settings for ScummVM core
cp -fv "$emuconfigs/retroarch/scummvm.ini" "$ra_scummvm_conf"
create_dir $mods_folder/RetroArch/ScummVM/icons
create_dir $mods_folder/RetroArch/ScummVM/extra
create_dir $mods_folder/RetroArch/ScummVM/themes
set_setting_value "$ra_scummvm_conf" "iconspath" "$mods_folder/RetroArch/ScummVM/icons" "scummvm_libretro" "scummvm"
set_setting_value "$ra_scummvm_conf" "extrapath" "$mods_folder/RetroArch/ScummVM/extra" "scummvm_libretro" "scummvm"
set_setting_value "$ra_scummvm_conf" "themepath" "$mods_folder/RetroArch/ScummVM/themes" "scummvm_libretro" "scummvm"
set_setting_value "$ra_scummvm_conf" "savepath" "$saves_folder/scummvm" "scummvm_libretro" "scummvm"
set_setting_value "$ra_scummvm_conf" "browser_lastpath" "$roms_folder/scummvm" "scummvm_libretro" "scummvm"
fi fi
# Shared actions # Shared actions