mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Remove old RD controller profile at update
Update RD controller profile detection
This commit is contained in:
parent
0db1f81c48
commit
62deadf340
|
@ -236,11 +236,12 @@ post_update() {
|
|||
|
||||
if [[ $prev_version -le "080" ]]; then
|
||||
# In version 0.8.0b, the following changes were made that required config file updates/reset or other changes to the filesystem:
|
||||
# - Remove RetroDECK controller profile from existing template location TODO
|
||||
# - Determine if Steam is installed via normal desktop application / Flatpak / SteamOS TODO
|
||||
# - Install RetroDECK controller profile in desired location TODO
|
||||
# - Remove RetroDECK controller profile from existing template location
|
||||
# - Change section name in retrodeck.cfg for ABXY button swap preset
|
||||
# - Force disable global rewind in RA in prep for preset system
|
||||
if [[ -f "$HOME/.steam/steam/controller_base/templates/RetroDECK_controller_config.vdf"]]; then # Only remove if file had been previously installed
|
||||
rm -f "$HOME/.steam/steam/controller_base/templates/RetroDECK_controller_config.vdf"
|
||||
fi
|
||||
sed -i 's^nintendo_button_layout^abxy_button_swap^' "$rd_conf" # This is a one-off sed statement as there are no functions for replacing section names
|
||||
set_setting_value "$raconf" "rewind_enable" "false" "retroarch"
|
||||
|
||||
|
@ -268,7 +269,7 @@ post_update() {
|
|||
rsync -rlD --mkpath "/app/retrodeck/extras/DynamicInputTextures/" "/var/data/primehack/Load/DynamicInputTextures/"
|
||||
fi
|
||||
|
||||
if [[ -f "$HOME/.steam/steam/controller_base/templates/RetroDECK_controller_config.vdf" ]]; then # If RetroDECK controller profile has been previously installed
|
||||
if [[ ! -z $(find . -maxdepth 1 -type f -iname "RetroDECK*.vdf") ]]; then # If RetroDECK controller profile has been previously installed
|
||||
install_retrodeck_controller_profile
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue