Add FPS option to ES for PCSX2.

This commit is contained in:
fewtarius 2023-10-13 10:48:24 +00:00
parent cbb54792f9
commit 78fcf0475d
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
2 changed files with 30 additions and 3 deletions

View file

@ -4,15 +4,30 @@
. /etc/profile
ARG=${1//[\\]/}
GAME=${1//[\\]/}
jslisten set "-9 pcsx2-qt"
FPS=$(get_setting show_fps ps2 "${GAME}")
if [ ! -d "/storage/.config/PCSX2" ]
then
cp -rf /usr/config/PCSX2 /storage/.config
fi
@APPIMAGE@ -fastboot -nogui -- "${ARG}"
for OSDPROPERTY in OsdShowSpeed OsdShowFPS OsdShowCPU OsdShowGPU OsdShowResolution OsdShowGSStats OsdShowIndicators
do
case ${FPS} in
true)
sed -i '/'${OSDPROPERTY}'/c\'${OSDPROPERTY}' = true' /storage/.config/PCSX2/inis/PCSX2.ini
;;
*)
sed -i '/'${OSDPROPERTY}'/c\'${OSDPROPERTY}' = false' /storage/.config/PCSX2/inis/PCSX2.ini
;;
esac
done
@APPIMAGE@ -fastboot -nogui -- "${GAME}"
#Workaround until we can learn why it doesn't exit cleanly when asked.
killall -9 pcsx2-qt
killall -9 pcsx2-qt

View file

@ -488,6 +488,18 @@
</core>
</cores>
</emulator>
<emulator name="pcsx2">
<cores>
<core name="pcsx2-sa">
<features>
<feature name="show fps">
<choice name="yes" value="true"/>
<choice name="no" value="false"/>
</feature>
</features>
</core>
</cores>
</emulator>
<emulator name="ryujinx">
<cores>
<core name="ryujinx-sa">