mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
FIX: correct variable references for rdhome in migration and post-update scripts [skip ci]
This commit is contained in:
parent
b2fed9023c
commit
c8bbaf7967
|
@ -53,9 +53,9 @@ save_migration() {
|
||||||
versionwheresaveschanged="0.4.5b" # Hardcoded break point between unsorted and sorted saves
|
versionwheresaveschanged="0.4.5b" # Hardcoded break point between unsorted and sorted saves
|
||||||
|
|
||||||
if [[ $(sed -e "s/\.//g" <<< $hard_version) > $(sed -e "s/\.//g" <<< $versionwheresaveschanged) ]] && [[ ! $(sed -e "s/\.//g" <<< $version) > $(sed -e "s/\.//g" <<< $versionwheresaveschanged) ]]; then # Check if user is upgrading from the version where save organization was changed. Try not to reuse this, it things 0.4.5b is newer than 0.4.5
|
if [[ $(sed -e "s/\.//g" <<< $hard_version) > $(sed -e "s/\.//g" <<< $versionwheresaveschanged) ]] && [[ ! $(sed -e "s/\.//g" <<< $version) > $(sed -e "s/\.//g" <<< $versionwheresaveschanged) ]]; then # Check if user is upgrading from the version where save organization was changed. Try not to reuse this, it things 0.4.5b is newer than 0.4.5
|
||||||
migration_logfile=$rdhome/logs/savemove_"$(date +"%Y_%m_%d_%I_%M_%p").log"
|
migration_logfile="$rdhome/logs/savemove_$(date +"%Y_%m_%d_%I_%M_%p").log"
|
||||||
save_backup_file=$rdhome/savebackup_"$(date +"%Y_%m_%d_%I_%M_%p").zip"
|
save_backup_file="$rdhome/savebackup_$(date +"%Y_%m_%d_%I_%M_%p").zip"
|
||||||
state_backup_file=$rdhome/statesbackup_"$(date +"%Y_%m_%d_%I_%M_%p").zip"
|
state_backup_file="$rdhome/statesbackup_$(date +"%Y_%m_%d_%I_%M_%p").zip"
|
||||||
|
|
||||||
rd_zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
rd_zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
||||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
|
|
@ -33,7 +33,7 @@ post_update() {
|
||||||
fi
|
fi
|
||||||
if [[ $(check_version_is_older_than "0.6.3b") == "true" ]]; then
|
if [[ $(check_version_is_older_than "0.6.3b") == "true" ]]; then
|
||||||
# In version 0.6.3b, the following changes were made that required config file updates/reset:
|
# In version 0.6.3b, the following changes were made that required config file updates/reset:
|
||||||
# - Put Dolphin and Primehack save states in different folders inside $rd_home/states
|
# - Put Dolphin and Primehack save states in different folders inside $rdhome/states
|
||||||
# - Fix symlink to hard-coded PICO-8 config folder (dir_prep doesn't like ~)
|
# - Fix symlink to hard-coded PICO-8 config folder (dir_prep doesn't like ~)
|
||||||
# - Overwrite Citra and Yuzu configs, as controller mapping was broken due to emulator updates.
|
# - Overwrite Citra and Yuzu configs, as controller mapping was broken due to emulator updates.
|
||||||
|
|
||||||
|
@ -636,7 +636,7 @@ post_update() {
|
||||||
# --- ALWAYS EXECUTED IN 0.9.1b ---
|
# --- ALWAYS EXECUTED IN 0.9.1b ---
|
||||||
|
|
||||||
log i "Preparing the shaders folder for MAME..."
|
log i "Preparing the shaders folder for MAME..."
|
||||||
shaders_folder=$rd_home/shaders && log i "Shaders folder set to \"$shaders_folder\""
|
shaders_folder=$rdhome/shaders && log i "Shaders folder set to \"$shaders_folder\""
|
||||||
conf_write && log i "Done"
|
conf_write && log i "Done"
|
||||||
|
|
||||||
log i "Preparing the cheats for RetroArch..."
|
log i "Preparing the cheats for RetroArch..."
|
||||||
|
|
Loading…
Reference in a new issue