POST_UPDATED: fixed and improved
Some checks are pending
Build RetroDECK / Build_RetroDECK (push) Waiting to run
Build RetroDECK / GitHub-publish (push) Blocked by required conditions
Build RetroDECK / Automated_Tests (push) Blocked by required conditions

This commit is contained in:
XargonWan 2025-01-31 11:55:14 +09:00
parent dc32232890
commit a112c1644c

View file

@ -10,7 +10,6 @@ post_update() {
fi
# Everything within the following ( <code> ) will happen behind the Zenity dialog. The save migration was a long process so it has its own individual dialogs.
(
if [[ $(check_version_is_older_than "0.6.2b") == "true" ]]; then
# In version 0.6.2b, the following changes were made that required config file updates/reset:
@ -364,6 +363,7 @@ post_update() {
move_cmd="move" # Use existing move function
log i "User chose to move the data without overwriting."
fi
fi
fi # end of 0.8.3b
# Check if the version is older than 0.8.4b
@ -534,12 +534,24 @@ post_update() {
set_setting_value "$raconf" "libretro_info_path" "/var/config/retroarch/cores" "retroarch"
log i "Moving Ryujinx data to the new locations"
if [[ -d "/var/config/Ryujinx/bis" ]]; then
mv -f "/var/config/Ryujinx/bis"/* "$saves_folder/switch/ryujinx/nand" && rm -rf "/var/config/Ryujinx/bis" && log i "Migrated Ryujinx nand data to the new location"
fi
if [[ -d "/var/config/Ryujinx/sdcard" ]]; then
mv -f "/var/config/Ryujinx/sdcard"/* "$saves_folder/switch/ryujinx/sdcard" && rm -rf "/var/config/Ryujinx/sdcard" && log i "Migrated Ryujinx sdcard data to the new location"
fi
if [[ -d "/var/config/Ryujinx/bis/system/Contents/registered" ]]; then
mv -f "/var/config/Ryujinx/bis/system/Contents/registered"/* "$bios_folder/switch/firmware" && rm -rf "/var/config/Ryujinx/bis/system/Contents/registered" && log i "Migration of Ryujinx firmware data to the new location"
fi
if [[ -d "/var/config/Ryujinx/system" ]]; then
mv -f "/var/config/Ryujinx/system"/* "$bios_folder/switch/keys" && rm -rf "/var/config/Ryujinx/system" && log i "Migrated Ryujinx keys data to the new location"
fi
if [[ -d "/var/config/Ryujinx/mods" ]]; then
mv -f "/var/config/Ryujinx/mods"/* "$mods_folder/ryujinx" && rm -rf "/var/config/Ryujinx/mods" && log i "Migrated Ryujinx mods data to the new location"
fi
if [[ -d "/var/config/Ryujinx/screenshots" ]]; then
mv -f "/var/config/Ryujinx/screenshots"/* "$screenshots_folder/ryujinx" && rm -rf "/var/config/Ryujinx/screenshots" && log i "Migrated Ryujinx screenshots to the new location"
fi
fi # end of 0.9.0b