From f0b1240f7e62cb2c45ce4ae555192d3dd6ce08de Mon Sep 17 00:00:00 2001 From: mason Date: Fri, 8 Sep 2023 19:11:20 +0000 Subject: [PATCH] Add graphics backend feature to PPSSPP --- .../standalone/ppsspp-sa/scripts/start_ppsspp.sh | 14 ++++++++++++++ .../emulationstation/config/common/es_features.cfg | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/packages/emulators/standalone/ppsspp-sa/scripts/start_ppsspp.sh b/packages/emulators/standalone/ppsspp-sa/scripts/start_ppsspp.sh index f11546021..2a989b1a5 100755 --- a/packages/emulators/standalone/ppsspp-sa/scripts/start_ppsspp.sh +++ b/packages/emulators/standalone/ppsspp-sa/scripts/start_ppsspp.sh @@ -22,6 +22,7 @@ fi FSKIP=$(get_setting frame_skip psp "${GAME}") FPS=$(get_setting show_fps psp "${GAME}") IRES=$(get_setting internal_resolution psp "${GAME}") + GRENDERER=$(get_setting graphics_backend psp "${GAME}") SKIPB=$(get_setting skip_buffer_effects psp "${GAME}") VSYNC=$(get_setting vsync psp "${GAME}") @@ -56,6 +57,19 @@ fi fi + #Graphics Backend + #Default to OpenGL / GLES if no option is set. + sed -i '/^GraphicsBackend =/c\GraphicsBackend = 0 (OPENGL)' /storage/.config/ppsspp/PSP/SYSTEM/ppsspp.ini + + if [ "$GRENDERER" = "opengl" ] + then + sed -i '/^GraphicsBackend =/c\GraphicsBackend = 0 (OPENGL)' /storage/.config/ppsspp/PSP/SYSTEM/ppsspp.ini + fi + if [ "$GRENDERER" = "vulkan" ] + then + sed -i '/^GraphicsBackend =/c\GraphicsBackend = 3 (VULKAN)' /storage/.config/ppsspp/PSP/SYSTEM/ppsspp.ini + fi + #Internal Resolution if [ "$IRES" = "1" ] then diff --git a/packages/ui/emulationstation/config/common/es_features.cfg b/packages/ui/emulationstation/config/common/es_features.cfg index 25b58d062..049112331 100644 --- a/packages/ui/emulationstation/config/common/es_features.cfg +++ b/packages/ui/emulationstation/config/common/es_features.cfg @@ -67,6 +67,10 @@ + + + +