From 5bf713534c32d4119e90218835488a83a3dd9e24 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 23 Aug 2024 23:34:04 +0900 Subject: [PATCH] SHADPS4: added post_update reset and a placeholder resett function [skip ci] --- functions/post_update.sh | 1 + functions/prepare_component.sh | 11 +++++++++++ 2 files changed, 12 insertions(+) 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