mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
POST_UPDATED: fixed and improved
This commit is contained in:
parent
dc32232890
commit
a112c1644c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue