Skip to content

Commit 2b6b0a1

Browse files
committed
Rework retroarch_updater to include shipped filters and update files in userland locations rather than redundant symlinks [skip ci]
1 parent bf84339 commit 2b6b0a1

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

retroarch/component_functions.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
retroarch_config="$XDG_CONFIG_HOME/retroarch/retroarch.cfg"
44
retroarch_config_core_options="$XDG_CONFIG_HOME/retroarch/retroarch-core-options.cfg"
5-
retroarch_config_scummvm="$XDG_CONFIG_HOME/retroarch/system/scummvm.ini"
5+
retroarch_config_scummvm="$bios_path/scummvm.ini"
66
retroarch_cores_path="$XDG_CONFIG_HOME/retroarch/cores"
77
retroarch_extras_path="$rd_components/retroarch/rd_extras"
88
retroarch_rd_config_dir="$rd_components/retroarch/rd_config"
@@ -14,14 +14,18 @@ retroarch_updater() {
1414
log i "Running RetroArch updater"
1515

1616
log i "Updating overlays/borders..."
17-
create_dir "$XDG_CONFIG_HOME/retroarch/overlays"
18-
tar -xzf "$retroarch_extras_path/overlays.tar.gz" -C "$XDG_CONFIG_HOME/retroarch/overlays" --overwrite && log d "RetroArch overlays and borders updated correctly"
17+
create_dir "$borders_path/retroarch/overlays"
18+
tar -h -xzf "$retroarch_extras_path/overlays.tar.gz" -C "$borders_path/retroarch/overlays" --overwrite && log d "RetroArch overlays and borders updated correctly"
1919

2020
log i "Updating shaders..."
21-
create_dir "$XDG_CONFIG_HOME/retroarch/shaders"
22-
tar -xzf "$retroarch_extras_path/shaders.tar.gz" -C "$XDG_CONFIG_HOME/retroarch/shaders" --overwrite && log d "RetroArch shaders updated correctly"
21+
create_dir "$shaders_path/retroarch/shaders"
22+
tar -h -xzf "$retroarch_extras_path/shaders.tar.gz" -C "$shaders_path/retroarch/shaders" --overwrite && log d "RetroArch shaders updated correctly"
23+
24+
log i "Updating filters..."
25+
create_dir "$shaders_path/retroarch/filters"
26+
tar -h -xzf "$retroarch_extras_path/filters.tar.gz" -C "$shaders_path/retroarch/filters" --overwrite && log d "RetroArch shaders updated correctly"
2327

2428
log i "Updating cheats..."
2529
create_dir "$cheats_path/retroarch"
26-
tar -xzf "$retroarch_extras_path/cheats.tar.gz" -C "$cheats_path/retroarch" --overwrite && log d "RetroArch cheats updated correctly"
30+
tar -h -xzf "$retroarch_extras_path/cheats.tar.gz" -C "$cheats_path/retroarch" --overwrite && log d "RetroArch cheats updated correctly"
2731
}

0 commit comments

Comments
 (0)