Skip to content

Commit acece6e

Browse files
committed
Apply the ppsspp 1.16.6 gles2 fix to lr-ppsspp
It's required to fix missing defines building for opengles2 (videocore) as with v1.16.6 of ppsspp. Use the __mod_info array to get the path of the patch, so it works when called from the lr-ppsspp scriptmodule.
1 parent 8356731 commit acece6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scriptmodules/emulators/ppsspp.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ function sources_ppsspp() {
5353
# ensure Pi vendor libraries are available for linking of shared library
5454
sed -n -i "p; s/^set(CMAKE_EXE_LINKER_FLAGS/set(CMAKE_SHARED_LINKER_FLAGS/p" cmake/Toolchains/raspberry.armv?.cmake
5555

56-
# fix missing defines on opengles2 on v1.16.6
57-
if [[ "$md_id" == "ppsspp" && "$(_get_release_ppsspp)" == "v1.16.6" ]]; then
58-
applyPatch "$md_data/gles2_fix.diff"
56+
# fix missing defines on opengles2 on v1.16.6 lr-ppsspp/ppsspp
57+
if [[ "$md_id" =~ ^(lr-)?ppsspp$ && "$(_get_release_ppsspp)" == "v1.16.6" ]]; then
58+
applyPatch "${__mod_info[ppsspp/path]%/*}/ppsspp/gles2_fix.diff"
5959
fi
6060

6161
# fix missing exported symbol for libretro on v1.13.2

0 commit comments

Comments
 (0)