diff --git a/scriptmodules/emulators/retroarch.sh b/scriptmodules/emulators/retroarch.sh index 335d3f846a..b211d2179d 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