mirror of
https://github.com/RetroDECK/components-archive.git
synced 2026-09-22 14:36:38 +00:00
44 lines
1.2 KiB
Bash
Executable file
44 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Supermodel all config folders and files needs to be next to the roms.
|
|
|
|
export supermodel_config="$XDG_CONFIG_HOME/supermodel/Config/Supermodel.ini"
|
|
|
|
_prepare_component::supermodel() {
|
|
|
|
local action="$1"
|
|
shift
|
|
|
|
local component_config="$(get_own_component_path)/rd_config"
|
|
|
|
case "$action" in
|
|
|
|
reset)
|
|
log i "----------------------"
|
|
log i "Resetting Supermodel"
|
|
log i "----------------------"
|
|
|
|
cp -fr "$component_config/"* "$roms_path/model3/"
|
|
|
|
dir_prep "$logs_path/supermodel/Analysis" "$roms_path/model3/Analysis"
|
|
dir_prep "$logs_path/supermodel/Logs" "$roms_path/model3/Logs"
|
|
dir_prep "$saves_path/model3/supermodel/Saves" "$roms_path/model3/Saves"
|
|
dir_prep "$roms_path/model3/Config" "$XDG_CONFIG_HOME/supermodel/Config"
|
|
|
|
;;
|
|
|
|
postmove)
|
|
log i "----------------------"
|
|
log i "Post-moving Supermodel"
|
|
log i "----------------------"
|
|
|
|
dir_prep "$logs_path/supermodel/Analysis" "$roms_path/model3/Analysis"
|
|
dir_prep "$logs_path/supermodel/Logs" "$roms_path/model3/Logs"
|
|
dir_prep "$saves_path/model3/supermodel/Saves" "$roms_path/model3/Saves"
|
|
dir_prep "$roms_path/model3/Config" "$XDG_CONFIG_HOME/supermodel/Config"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
} |