mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
ES-DE: migrating collections and games list in a new structure
This commit is contained in:
parent
c7abe3ea9f
commit
c1c0491a66
|
@ -300,6 +300,14 @@ post_update() {
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $(check_version_is_older_than "0.8.1b") == "true" ]]; then
|
||||||
|
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/gamelists" "/var/config/ES-DE/gamelists"
|
||||||
|
mv -f "$rdhome/gamelists/"* "$rdhome/ES-DE/gamelists"
|
||||||
|
rm -rf "$rdhome/gamelists"
|
||||||
|
fi
|
||||||
|
|
||||||
# if [[ $(check_version_is_older_than "0.9.0b") == "true" ]]; then
|
# if [[ $(check_version_is_older_than "0.9.0b") == "true" ]]; then
|
||||||
# # Placeholder for version 0.9.0b
|
# # Placeholder for version 0.9.0b
|
||||||
# rm /var/config/emulationstation/.emulationstation # remving the old symlink to .emulationstation as it might be not needed anymore
|
# rm /var/config/emulationstation/.emulationstation # remving the old symlink to .emulationstation as it might be not needed anymore
|
||||||
|
|
|
@ -60,7 +60,8 @@ prepare_component() {
|
||||||
set_setting_value "$es_settings" "ROMDirectory" "$roms_folder" "es_settings"
|
set_setting_value "$es_settings" "ROMDirectory" "$roms_folder" "es_settings"
|
||||||
set_setting_value "$es_settings" "MediaDirectory" "$media_folder" "es_settings"
|
set_setting_value "$es_settings" "MediaDirectory" "$media_folder" "es_settings"
|
||||||
set_setting_value "$es_settings" "UserThemeDirectory" "$themes_folder" "es_settings"
|
set_setting_value "$es_settings" "UserThemeDirectory" "$themes_folder" "es_settings"
|
||||||
dir_prep "$rdhome/gamelists" "/var/config/ES-DE/gamelists"
|
dir_prep "$rdhome/ES-DE/gamelists" "/var/config/ES-DE/gamelists"
|
||||||
|
dir_prep "$rdhome/ES-DE/collections" "/var/config/ES-DE/collections"
|
||||||
dir_prep "$rd_logs_folder/ES-DE" "$es_source_logs"
|
dir_prep "$rd_logs_folder/ES-DE" "$es_source_logs"
|
||||||
log d "Generating roms system folders"
|
log d "Generating roms system folders"
|
||||||
#es-de --home /var/config/ES-DE --create-system-dirs
|
#es-de --home /var/config/ES-DE --create-system-dirs
|
||||||
|
|
Loading…
Reference in a new issue