mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
SAVE_MIGRATION: quoted some paths [skip ci]
This commit is contained in:
parent
bc7978fe91
commit
622127b70b
|
@ -6,8 +6,8 @@ save_migration() {
|
||||||
then
|
then
|
||||||
# ROMs on SD card
|
# ROMs on SD card
|
||||||
roms_folder="$default_sd/retrodeck/roms"
|
roms_folder="$default_sd/retrodeck/roms"
|
||||||
if [[ ! -L $rdhome && ! -L $rdhome/roms ]]; then # Add a roms folder symlink back to ~/retrodeck if missing, to fix things like PS2 autosaves until user migrates whole ~retrodeck directory
|
if [[ ! -L "$rdhome" && ! -L "$rdhome/roms" ]]; then # Add a roms folder symlink back to ~/retrodeck if missing, to fix things like PS2 autosaves until user migrates whole ~retrodeck directory
|
||||||
ln -s $roms_folder $rdhome/roms
|
ln -s $roms_folder "$rdhome/roms"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# ROMs on Internal
|
# ROMs on Internal
|
||||||
|
@ -30,7 +30,7 @@ save_migration() {
|
||||||
# Doing the dir prep as we don't know from which version we came
|
# Doing the dir prep as we don't know from which version we came
|
||||||
dir_prep "$media_folder" "/var/config/ES-DE/downloaded_media"
|
dir_prep "$media_folder" "/var/config/ES-DE/downloaded_media"
|
||||||
dir_prep "$themes_folder" "/var/config/ES-DE/themes"
|
dir_prep "$themes_folder" "/var/config/ES-DE/themes"
|
||||||
create_dir $rdhome/logs #this was added later, maybe safe to remove in a few versions
|
create_dir "$rdhome/logs" #this was added later, maybe safe to remove in a few versions
|
||||||
|
|
||||||
# Resetting es_settings, now we need it but in the future I should think a better solution, maybe with sed
|
# Resetting es_settings, now we need it but in the future I should think a better solution, maybe with sed
|
||||||
cp -fv /app/retrodeck/es_settings.xml /var/config/ES-DE/settings/es_settings.xml
|
cp -fv /app/retrodeck/es_settings.xml /var/config/ES-DE/settings/es_settings.xml
|
||||||
|
@ -39,13 +39,13 @@ save_migration() {
|
||||||
# Perform save and state migration if needed
|
# Perform save and state migration if needed
|
||||||
|
|
||||||
# Moving PCSX2 Saves
|
# Moving PCSX2 Saves
|
||||||
mv -fv /var/config/PCSX2/sstates/* $rdhome/states/ps2/pcsx2
|
mv -fv /var/config/PCSX2/sstates/* "$rdhome/states/ps2/pcsx2"
|
||||||
mv -fv /var/config/PCSX2/memcards/* $rdhome/saves/ps2/memcards
|
mv -fv /var/config/PCSX2/memcards/* "$rdhome/saves/ps2/memcards"
|
||||||
|
|
||||||
# Moving Citra saves from legacy location to 0.5.0b structure
|
# Moving Citra saves from legacy location to 0.5.0b structure
|
||||||
|
|
||||||
mv -fv $rdhome/saves/Citra/* $rdhome/saves/n3ds/citra
|
mv -fv "$rdhome/saves/Citra/"* "$rdhome/saves/n3ds/citra"
|
||||||
rmdir $rdhome/saves/Citra # Old folder cleanup
|
rmdir "$rdhome/saves/Citra" # Old folder cleanup
|
||||||
|
|
||||||
versionwheresaveschanged="0.4.5b" # Hardcoded break point between unsorted and sorted saves
|
versionwheresaveschanged="0.4.5b" # Hardcoded break point between unsorted and sorted saves
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ save_migration() {
|
||||||
current_dest_folder=
|
current_dest_folder=
|
||||||
gamestoskip=
|
gamestoskip=
|
||||||
|
|
||||||
tar -C $rdhome -czf $save_backup_file saves # Backup save directory for safety
|
tar -C "$rdhome" -czf $save_backup_file saves # Backup save directory for safety
|
||||||
log i "Saves backed up to" $save_backup_file $migration_logfile
|
log i "Saves backed up to" $save_backup_file $migration_logfile
|
||||||
tar -C $rdhome -czf $state_backup_file states # Backup state directory for safety
|
tar -C "$rdhome" -czf $state_backup_file states # Backup state directory for safety
|
||||||
log i "States backed up to" $state_backup_file $migration_logfile
|
log i "States backed up to" $state_backup_file $migration_logfile
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue