Skip to content

Commit

Permalink
retroarch: add core info files to configuration
Browse files Browse the repository at this point in the history
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 RetroPie#3161).
  • Loading branch information
cmitu committed Jun 13, 2022
1 parent 5cd6dd2 commit d9e0a56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scriptmodules/emulators/retroarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d9e0a56

Please sign in to comment.