Merge pull request #2031 from brooksytech/dev
Add graphics backend feature to PPSSPP
This commit is contained in:
commit
849a3eccfe
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -67,6 +67,10 @@
|
|||
<choice name="3 frames per second" value="3"/>
|
||||
<choice name="auto frame skip" value="auto"/>
|
||||
</feature>
|
||||
<feature name="graphics backend">
|
||||
<choice name="opengl" value="opengl"/>
|
||||
<choice name="vulkan" value="vulkan"/>
|
||||
</feature>
|
||||
<feature name="internal resolution">
|
||||
<choice name="1x" value="1"/>
|
||||
<choice name="2x" value="2"/>
|
||||
|
|
Loading…
Reference in a new issue