diff --git a/functions/post_update.sh b/functions/post_update.sh index 146a8d10..5c8c12f3 100644 --- a/functions/post_update.sh +++ b/functions/post_update.sh @@ -378,6 +378,7 @@ post_update() { # Placeholder for version 0.9.0b set_setting_value "$raconf" "libretro_info_path" "/var/config/retroarch/cores" "retroarch" + prepare_component "reset" "shadps4" # TODO: check this # rm /var/config/emulationstation/.emulationstation # remving the old symlink to .emulationstation as it might be not needed anymore diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index 137a5bbe..5c41b644 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -857,6 +857,17 @@ prepare_component() { sed -i 's#RETRODECKSAVESDIR#'$saves_folder'#g' "/var/config/gzdoom/gzdoom.ini" # This is an unfortunate one-off because set_setting_value does not currently support JSON fi + if [[ "$component" =~ ^(gzdoom|all)$ ]]; then + component_found="true" + # This is just a placeholder script to test the emulator's flow + log i "----------------------" + log i "Prepearing SHADPS4" + log i "----------------------" + + # TODO: plceholder + + fi + if [[ $component_found == "false" ]]; then log e "Supplied component $component not found, not resetting" fi