mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Merge pull request #850 from icenine451/cooker-0.8.3b-icenine451
More 0.8.3b ES-DE recovery changes
This commit is contained in:
commit
9c20f5a0dd
|
@ -304,7 +304,7 @@ post_update() {
|
||||||
log i "In version 0.8.1b, the following changes were made that required config file updates/reset or other changes to the filesystem:"
|
log i "In version 0.8.1b, the following changes were made that required config file updates/reset or other changes to the filesystem:"
|
||||||
log i "- ES-DE files were moved inside the retrodeck folder, migrating to the new structure"
|
log i "- ES-DE files were moved inside the retrodeck folder, migrating to the new structure"
|
||||||
log i "- Give the user the option to reset Ryujinx, which was not properly initialized in 0.8.0b"
|
log i "- Give the user the option to reset Ryujinx, which was not properly initialized in 0.8.0b"
|
||||||
|
|
||||||
log d "ES-DE files were moved inside the retrodeck folder, migrating to the new structure"
|
log d "ES-DE files were moved inside the retrodeck folder, migrating to the new structure"
|
||||||
dir_prep "$rdhome/ES-DE/collections" "/var/config/ES-DE/collections"
|
dir_prep "$rdhome/ES-DE/collections" "/var/config/ES-DE/collections"
|
||||||
dir_prep "$rdhome/ES-DE/gamelists" "/var/config/ES-DE/gamelists"
|
dir_prep "$rdhome/ES-DE/gamelists" "/var/config/ES-DE/gamelists"
|
||||||
|
@ -345,6 +345,7 @@ post_update() {
|
||||||
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
||||||
move "$rdhome/downloaded_media" "$rdhome/ES-DE/downloaded_media" && log d "Move of \"$rdhome/downloaded_media\" completed"
|
move "$rdhome/downloaded_media" "$rdhome/ES-DE/downloaded_media" && log d "Move of \"$rdhome/downloaded_media\" completed"
|
||||||
move "$rdhome/gamelists" "$rdhome/ES-DE/gamelists" && log d "Move of \"$rdhome/gamelists/\" completed"
|
move "$rdhome/gamelists" "$rdhome/ES-DE/gamelists" && log d "Move of \"$rdhome/gamelists/\" completed"
|
||||||
|
move "$rdhome/collections" "$rdhome/ES-DE/collections" && log d "Move of \"$rdhome/collections/\" completed"
|
||||||
log i "Since in this version we moved to a PR build of Ryujinx we need to symlink it."
|
log i "Since in this version we moved to a PR build of Ryujinx we need to symlink it."
|
||||||
ln -sv $ryujinxconf "$(dirname $ryujinxconf)/PRConfig.json"
|
ln -sv $ryujinxconf "$(dirname $ryujinxconf)/PRConfig.json"
|
||||||
fi
|
fi
|
||||||
|
@ -352,24 +353,24 @@ post_update() {
|
||||||
if [[ $(check_version_is_older_than "0.8.3b") == "true" ]]; then
|
if [[ $(check_version_is_older_than "0.8.3b") == "true" ]]; then
|
||||||
# In version 0.8.3b, the following changes were made:
|
# In version 0.8.3b, the following changes were made:
|
||||||
# - Recovery from a failed move of the themes, downloaded_media and gamelists folder to their new ES-DE locations.
|
# - Recovery from a failed move of the themes, downloaded_media and gamelists folder to their new ES-DE locations.
|
||||||
if [[ !-d "$rdhome/ES-DE/themes" || ! -d "$rdhome/ES-DE/downloaded_media" || ! -d "$rdhome/ES-DE/gamelists" || ! -d "$rdhome/ES-DE/collections" ]]; then
|
if [ ! -d "$rdhome/ES-DE/themes" ] || [ ! -d "$rdhome/ES-DE/downloaded_media" ] || [ ! -d "$rdhome/ES-DE/gamelists" ] || [ ! -d "$rdhome/ES-DE/collections" ]; then
|
||||||
log i "Moving ES-DE downloaded_media, gamelist, and themes from \"$rdhome\" to \"$rdhome/ES-DE\" due to a RetroDECK Framework bug"
|
log i "Moving ES-DE downloaded_media, gamelist, and themes from \"$rdhome\" to \"$rdhome/ES-DE\" due to a RetroDECK Framework bug"
|
||||||
if [[ -d "$rdhome/themes" && ! -d "$rdhome/ES-DE/themes" ]]; then
|
if [[ -d "$rdhome/themes" ]]; then
|
||||||
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
move "$rdhome/themes" "$rdhome/ES-DE/themes" && log d "Move of \"$rdhome/themes\" completed"
|
||||||
else
|
else
|
||||||
log i "ES-DE themes appears to already have been migrated."
|
log i "ES-DE themes appears to already have been migrated."
|
||||||
fi
|
fi
|
||||||
if [[ -d "$rdhome/downloaded_media" && ! -d "$rdhome/ES-DE/downloaded_media" ]]; then
|
if [[ -d "$rdhome/downloaded_media" ]]; then
|
||||||
move "$rdhome/downloaded_media" "$rdhome/ES-DE/downloaded_media" && log d "Move of \"$rdhome/downloaded_media\" completed"
|
move "$rdhome/downloaded_media" "$rdhome/ES-DE/downloaded_media" && log d "Move of \"$rdhome/downloaded_media\" completed"
|
||||||
else
|
else
|
||||||
log i "ES-DE downloaded media appears to already have been migrated."
|
log i "ES-DE downloaded media appears to already have been migrated."
|
||||||
fi
|
fi
|
||||||
if [[ -d "$rdhome/gamelists" && ! -d "$rdhome/ES-DE/gamelists" ]]; then
|
if [[ -d "$rdhome/gamelists" ]]; then
|
||||||
move "$rdhome/gamelists" "$rdhome/ES-DE/gamelists" && log d "Move of \"$rdhome/gamelists/\" completed"
|
move "$rdhome/gamelists" "$rdhome/ES-DE/gamelists" && log d "Move of \"$rdhome/gamelists/\" completed"
|
||||||
else
|
else
|
||||||
log i "ES-DE gamelists appears to already have been migrated."
|
log i "ES-DE gamelists appears to already have been migrated."
|
||||||
fi
|
fi
|
||||||
if [[ -d "$rdhome/collections" && ! -d "$rdhome/ES-DE/collections" ]]; then
|
if [[ -d "$rdhome/collections" ]]; then
|
||||||
move "$rdhome/collections" "$rdhome/ES-DE/collections" && log d "Move of \"$rdhome/collections/\" completed"
|
move "$rdhome/collections" "$rdhome/ES-DE/collections" && log d "Move of \"$rdhome/collections/\" completed"
|
||||||
else
|
else
|
||||||
log i "ES-DE collections appears to already have been migrated."
|
log i "ES-DE collections appears to already have been migrated."
|
||||||
|
|
Loading…
Reference in a new issue