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 #3161).
  • Loading branch information
cmitu committed Jun 15, 2022
1 parent 5cd6dd2 commit 55aab04
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scriptmodules/emulators/retroarch.sh
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 Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 55aab04

Please sign in to comment.