Skip to content

Commit

Permalink
Update PPSSPP with hotfix 9
Browse files Browse the repository at this point in the history
PSP folder reorganized, 3 versions of PPSSPP:

- PPSSPP 1.17.1 - OpenGL
- PPSSPP 1.17.1 - Vulkan
- PPSSPP-1.5.4

Hotfix 9 observations:
The 1.5.4 has not changed since hotfix 6.
There are a little difference in the vulkan binary compared to hotfix 6.
It now includes a GL version of the 1.17.1 (however it's potentially possible to use GL with the vulkan binary if you set the right option in ppsspp.ini).

1.17.1 - OpenGL &  Vulkan now share the same config folder, it allows to avoid to remake the game configuration each time you switch between GL and Vulkan. Also the save states are mutualized between both version.

The performance mode is enabled by detection of the label which have been selected in launcher menu, a script which could be useful for other use cases. It avoid to have a lot of duplicated launcher scripts.
  • Loading branch information
cizia64 committed Jun 12, 2024
1 parent 78c5ec8 commit d504e1c
Show file tree
Hide file tree
Showing 181 changed files with 2,617 additions and 88 deletions.
2,509 changes: 2,508 additions & 1 deletion Emus/PSP/PPSSPP_1.15.4/.config/ppsspp/PSP/Cheats/cheat.db

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions Emus/PSP/PPSSPP_1.15.4/.config/ppsspp/PSP/SYSTEM/ppsspp.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[General]
FirstRun = False
RunCount = 22
RunCount = 0
Enable Logging = True
AutoRun = True
Browse = False
IgnoreBadMemAccess = True
CurrentDirectory = /mnt/SDCARD/Roms/PSP
ShowDebuggerOnLoad = False
CheckForNewVersion = True
CheckForNewVersion = False
Language = en_US
ForceLagSync2 = False
DiscordPresence = True
Expand Down Expand Up @@ -403,8 +403,6 @@ VRHeadRotationEnabled = False
VRHeadRotationSmoothing = False
[Recent]
MaxRecent = 60
FileName0 = /mnt/SDCARD/Roms/PSP/Crisis Core - Final Fantasy VII (USA).iso
FileName1 = /mnt/SDCARD/Roms/PSP/3rd Birthday, The (USA).iso
[Log]
SYSTEMEnabled = True
SYSTEMLevel = 2
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[General]
FirstRun = False
RunCount = 42
RunCount = 0
Enable Logging = True
AutoRun = True
Browse = False
IgnoreBadMemAccess = True
CurrentDirectory = /mnt/SDCARD/Roms/PSP
ShowDebuggerOnLoad = False
CheckForNewVersion = True
CheckForNewVersion = False
Language = en_US
ForceLagSync2 = False
DiscordPresence = True
Expand Down Expand Up @@ -520,10 +520,6 @@ VRPassthrough = False
VRCanvas3DDistance = 3.000000
[Recent]
MaxRecent = 60
FileName0 = /mnt/SDCARD/Roms/PSP/Burnout Dominator.cso
FileName1 = /mnt/SDCARD/Roms/PSP/LittleBigPlanet (USA) (En,Fr,De,Es,It,Nl,Pt,Sv,No,Da,Fi,Pl).iso
FileName2 = /mnt/SDCARD/Roms/PSP/god of war - chain of olympus.iso
FileName3 = /mnt/SDCARD/Roms/PSP/3rd Birthday, The (USA).iso
[Log]
SYSTEMEnabled = True
SYSTEMLevel = 2
Expand Down Expand Up @@ -609,8 +605,4 @@ AchievementsProgressPos = 3
AchievementsChallengePos = 3
AchievementsUnlockedPos = 4
[PlayTime]
NPEG00023 = 868,1716150342436800768
UCUS98744 = 14,1716151434066525952
ULUS10567 = 271,1715993570714612992
ULUS10336 = 6,1715735894705545728
ULUS10236 = 32,1716243318349606912

Binary file added Emus/PSP/PPSSPP_1.17.1/PPSSPPSDL_gl
Binary file not shown.
File renamed without changes.
Binary file added Emus/PSP/PPSSPP_1.17.1/PPSSPPSDL_vulkan
Binary file not shown.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
41 changes: 28 additions & 13 deletions Emus/PSP/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,50 @@
"label": "PSP",
"label.ch.lang": "PSP",
"icon": "/mnt/SDCARD/Icons/Default/Emus/PSP.png",
"launch": "launch_performance.sh",
"launch": "launch_1.17.1_gl.sh",
"background": "/mnt/SDCARD/Backgrounds/Default/PSP.png",
"themecolor": "64A8BD",
"iconsel": "",
"rompath": "../../Roms/PSP",
"imgpath": "../../Imgs/PSP",
"useswap": 0,
"useswap": 1,
"shortname": 0,
"hidebios": 0,
"launchlist": [
{
"name": "PPSSPP 1.17.1 - perf.",
"name.ch.lang": "PPSSPP性能模式",
"launch": "launch_performance.sh"
"name": "PPSSPP 1.17.1 - OpenGL",
"name.ch.lang": "PPSSPP正常模式",
"launch": "launch_1.17.1_gl.sh"
},
{
"name": "PPSSPP 1.17.1",
"name.ch.lang": "PPSSPP正常模式",
"launch": "launch.sh"
"name": "PPSSPP 1.17.1 - Vulkan",
"name.ch.lang": "PPSSPP性能模式",
"launch": "launch_1.17.1_vulkan.sh"
},
{
"name": "PPSSPP-1.5.4 - Perf.",
"name": "PPSSPP-1.5.4",
"name.ch.lang": "PPSSPP-1.5.4性能模式",
"launch": "launch_performance_1.15.4.sh"
"launch": "launch_1.15.4.sh"
},
{
"name": "PPSSPP-1.5.4",
"name.ch.lang": "PPSSPP-1.5.4正常模式",
"name": "---------------------------",
"name.ch.lang": "---------------------------",
"launch": ""
},
{
"name": "PPSSPP 1.17.1 - OpenGL - Perf.",
"name.ch.lang": "PPSSPP正常模式 - Perf.",
"launch": "launch_1.17.1_gl.sh"
},
{
"name": "PPSSPP 1.17.1 - Vulkan - Perf.",
"name.ch.lang": "PPSSPP性能模式 - Perf.",
"launch": "launch_1.17.1_vulkan.sh"
},
{
"name": "PPSSPP-1.5.4 - Perf.",
"name.ch.lang": "PPSSPP-1.5.4性能模式 - Perf.",
"launch": "launch_1.15.4.sh"
}
}
]
}
3 changes: 0 additions & 3 deletions Emus/PSP/cpufreq.sh

This file was deleted.

15 changes: 0 additions & 15 deletions Emus/PSP/launch.sh

This file was deleted.

21 changes: 17 additions & 4 deletions Emus/PSP/launch_1.15.4.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
#!/bin/sh
echo $0 $*
source /mnt/SDCARD/System/usr/trimui/scripts/FolderOverrideFinder.sh
progdir=`dirname "$0"`
progdir154=$progdir/PPSSPP_1.15.4
cd $progdir154
cd "$progdir154"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$progdir154

echo "=============================================="
echo "==================== PPSSPP ================="
echo "=============================================="

./cpufreq.sh


performance=$(grep -i "dowork 0x" "/tmp/log/messages" | tail -n 1 | grep -i "Perf.")
if [ -n "$performance" ]; then
echo "Performance mode selected"
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1008000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online
fi


export HOME=$progdir154
./PPSSPPSDL "$*"

echo "*************************************************************"
30 changes: 30 additions & 0 deletions Emus/PSP/launch_1.17.1_gl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
echo $0 $*
progdir=`dirname "$0"`
progdir171=$progdir/PPSSPP_1.17.1
cd "$progdir171"

echo "=============================================="
echo "==================== PPSSPP ================="
echo "=============================================="

performance=$(grep -i "dowork 0x" "/tmp/log/messages" | tail -n 1 | grep -i "Perf.") # We detect the performance mode from the label which have been selected in launcher menu
if [ -n "$performance" ]; then
echo "Performance mode selected"
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1008000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online
fi

# We set the Backend to OpenGL
config_file="/mnt/SDCARD/Emus/PSP/PPSSPP_1.17.1/.config/ppsspp/PSP/SYSTEM/ppsspp.ini"
sed -i '/^\[Graphics\]$/,/^\[/ s/GraphicsBackend = .*/GraphicsBackend = 0/' "$config_file"

export HOME=$progdir171
#export SDL_AUDIODRIVER=dsp //disable 20231031 for sound suspend issue
./PPSSPPSDL_gl "$*"

29 changes: 29 additions & 0 deletions Emus/PSP/launch_1.17.1_vulkan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh
echo $0 $*
progdir=`dirname "$0"`
progdir171=$progdir/PPSSPP_1.17.1
cd "$progdir171"

echo "=============================================="
echo "==================== PPSSPP ================="
echo "=============================================="

performance=$(grep -i "dowork 0x" "/tmp/log/messages" | tail -n 1 | grep -i "Perf.") # We detect the performance mode from the label which have been selected in launcher menu
if [ -n "$performance" ]; then
echo "Performance mode selected"
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1008000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 2000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online
fi

# We set the Backend to Vulkan
config_file="/mnt/SDCARD/Emus/PSP/PPSSPP_1.17.1/.config/ppsspp/PSP/SYSTEM/ppsspp.ini"
sed -i '/^\[Graphics\]$/,/^\[/ s/GraphicsBackend = .*/GraphicsBackend = 3/' "$config_file"

export HOME=$progdir171
#export SDL_AUDIODRIVER=dsp //disable 20231031 for sound suspend issue
./PPSSPPSDL_vulkan "$*"
18 changes: 0 additions & 18 deletions Emus/PSP/launch_performance.sh

This file was deleted.

19 changes: 0 additions & 19 deletions Emus/PSP/launch_performance_1.15.4.sh

This file was deleted.

0 comments on commit d504e1c

Please sign in to comment.