From c2e5acc2d73cad312cde00600f7c717b9156aab4 Mon Sep 17 00:00:00 2001 From: cmitu <31816814+cmitu@users.noreply.github.com> Date: Mon, 13 Jun 2022 08:12:13 +0100 Subject: [PATCH] retroarch: add core info files to configuration Core info files are needed starting from 1.10.1 in order to enable save/load state, rewind, runahead, (disk control ?). In addition to that, they're needed for netplay clients to work (see issue #3161). --- scriptmodules/emulators/retroarch.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scriptmodules/emulators/retroarch.sh b/scriptmodules/emulators/retroarch.sh index 335d3f846a..cb74f52776 100644 --- a/scriptmodules/emulators/retroarch.sh +++ b/scriptmodules/emulators/retroarch.sh @@ -105,6 +105,14 @@ function update_assets_retroarch() { chown -R $user:$user "$dir" } +function update_core_info_retroarch() { + local dir="$configdir/all/retroarch/cores" + # remove if not a git repository and do a fresh checkout + [[ ! -d "$dir/.git" ]] && rm -fr "$dir" + gitPullOrClone "$configdir/all/retroarch/cores" https://github.com/libretro/libretro-core-info.git + chown -R $user:$user "$dir" +} + function install_minimal_assets_retroarch() { local dir="$configdir/all/retroarch/assets" [[ -d "$dir/.git" ]] && return @@ -143,6 +151,9 @@ function configure_retroarch() { # install minimal assets install_minimal_assets_retroarch + # install core info files + update_core_info_retroarch + # install joypad autoconfig presets update_joypad_autoconfigs_retroarch @@ -225,6 +236,8 @@ function configure_retroarch() { iniSet "menu_show_core_updater" "false" iniSet "menu_show_online_updater" "false" iniSet "menu_show_restart_retroarch" "false" + # disable the load notification message with core and game info + iniSet "menu_show_load_content_animation" "false" # disable unnecessary xmb menu tabs iniSet "xmb_show_add" "false" @@ -269,6 +282,9 @@ function configure_retroarch() { # (compat) keep all core options in a single file _set_config_option_retroarch "global_core_options" "true" + # disable the content load info popup with core and game info + _set_config_option_retroarch "menu_show_load_content_animation" "false" + # remapping hack for old 8bitdo firmware addAutoConf "8bitdo_hack" 0 }