setsettings should ensure that overlays are used correctly.

This commit is contained in:
fewtarius 2023-07-23 22:34:58 +00:00
parent e1eeb49cfb
commit 16340e1279
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -304,6 +304,30 @@ function match() {
### Game data functions
###
### Configure retroarch paths
function set_retroarch_paths() {
for RETROARCH_PATH in assets_directory cache_directory \
cheat_database_path content_database_path \
content_database_path joypad_autoconfig_dir \
libretro_directory libretro_info_path \
overlay_directory video_shader_dir
do
clear_setting "${RETROARCH_PATH}"
done
flush_settings
cat <<EOF >>${RETROARCH_CONFIG}
assets_directory = "/tmp/assets"
cache_directory = "/tmp/cache"
cheat_database_path = "/tmp/database/cht"
content_database_path = "/tmp/database/rdb"
joypad_autoconfig_dir = "/tmp/joypads"
libretro_directory = "/tmp/cores"
libretro_info_path = "/tmp/cores"
overlay_directory = "/tmp/overlays"
video_shader_dir = "/tmp/shaders"
EOF
}
### Configure retroarch hotkeys
function configure_hotkeys() {
log "Configure hotkeys..."
@ -744,6 +768,7 @@ function set_controllers() {
### Functions that cannot be parallelized
###
set_retroarch_paths
configure_hotkeys
###