SHADPS4: added post_update reset and a placeholder resett function [skip ci]

This commit is contained in:
XargonWan 2024-08-23 23:34:04 +09:00
parent 6b0a4d0593
commit 5bf713534c
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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