Skip to content

Play your Steam library's Windows games on a jailbroken PS5.

C++

Update ps5-opengl to 1.0.2

Leonardo Lobato7ad7be21ca0d
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 1e78a86..478bd69 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -11,7 +11,7 @@ These are compiled into Playden's PS5 package (`FAKE77031`) or copied into it.
| Component | Version | License | Source |
| --- | --- | --- | --- |
| ps5-homebrew-ui | fork `0a6fb4b` | GPL-3.0 | by blackbearreloaded (the original repository is gone); my fork [leolobato/ps5-homebrew-ui](https://github.com/leolobato/ps5-homebrew-ui) in `third_party/ps5-homebrew-ui` |
-| ps5-opengl (`libPS5OpenGL`) | 1.0.0, fork `7234923` | GPL-3.0 | by blackbearreloaded (the original repository is gone); my fork [leolobato/ps5-opengl](https://github.com/leolobato/ps5-opengl) in `third_party/ps5-opengl` |
+| ps5-opengl (`libPS5OpenGL`) | 1.0.2, fork `384d1bd` | GPL-3.0 | by blackbearreloaded (the original repository is gone); my fork [leolobato/ps5-opengl](https://github.com/leolobato/ps5-opengl) in `third_party/ps5-opengl` |
| ps5-native-app-boilerplate (build tools and `libc.prx`) | `f98de73` | GPL-3.0 | [drakmor/ps5-native-app-boilerplate](https://github.com/drakmor/ps5-native-app-boilerplate); its `main` no longer has the pinned commit, so the submodule uses my copy [leolobato/ps5-native-app-boilerplate](https://github.com/leolobato/ps5-native-app-boilerplate) |
| ProsperoStore's system keyboard (adapted in `src/platform/ps5/system_keyboard.cpp` and `common_dialog_stub.cpp`) | `f73ec17` | GPL-3.0 | [darkxex/ProsperoStore](https://github.com/darkxex/ProsperoStore) |
| ps5-payload-sdk | v0.43 (v0.42 for the root helper) | GPL-3.0 | [ps5-payload-dev/sdk](https://github.com/ps5-payload-dev/sdk) |
diff --git a/cmake/HomebrewPS5.cmake b/cmake/HomebrewPS5.cmake
index 2a67a69..1d12257 100644
--- a/cmake/HomebrewPS5.cmake
+++ b/cmake/HomebrewPS5.cmake
@@ -15,20 +15,27 @@ function(playden_add_homebrew_ps5_title)
message(FATAL_ERROR "Missing boilerplate submodule; run: git submodule update --init third_party/ps5-native-app-boilerplate")
endif()
set(gl_source "${CMAKE_SOURCE_DIR}/third_party/ps5-opengl")
- set(gl_sdk "${sdk_deps}/ps5-opengl/ps5-opengl-sdk-1.0.0/sdk")
+ file(READ "${CMAKE_SOURCE_DIR}/dependencies.lock.json" dependency_lock)
+ string(JSON gl_version GET "${dependency_lock}" ps5_opengl version)
+ set(gl_sdk "${sdk_deps}/ps5-opengl/ps5-opengl-sdk-${gl_version}/sdk")
set(out "${CMAKE_BINARY_DIR}")
set(app "${out}/dist/${PLAYDEN_PS5_TITLE_ID}")
set(host "${out}/host-tools")
set(native "${host}/native-src")
- file(READ "${CMAKE_SOURCE_DIR}/dependencies.lock.json" dependency_lock)
string(JSON expected_gl_sha GET "${dependency_lock}" ps5_opengl libPS5OpenGL_sha256)
+ string(JSON expected_gl_manifest_sha GET "${dependency_lock}" ps5_opengl sdk_manifest_sha256)
string(JSON expected_builtins_sha GET "${dependency_lock}" compiler_rt_builtins sha256)
string(JSON expected_libc_sha GET "${dependency_lock}" ps5_native_app_boilerplate libc_prx_sha256)
file(SHA256 "${gl_sdk}/lib/libPS5OpenGL.a" actual_gl_sha)
+ # libPS5OpenGL.a only names the real libraries; scripts/fetch-deps.sh checks every file against this manifest.
+ file(SHA256 "${gl_sdk}/manifest.sha256" actual_gl_manifest_sha)
file(SHA256 "${sdk_deps}/compiler-rt/libclang_rt.builtins-x86_64.a" actual_builtins_sha)
if(NOT actual_gl_sha STREQUAL expected_gl_sha)
message(FATAL_ERROR "libPS5OpenGL.a hash mismatch: expected ${expected_gl_sha}, found ${actual_gl_sha}")
endif()
+ if(NOT actual_gl_manifest_sha STREQUAL expected_gl_manifest_sha)
+ message(FATAL_ERROR "ps5-opengl SDK manifest hash mismatch: expected ${expected_gl_manifest_sha}, found ${actual_gl_manifest_sha}")
+ endif()
if(NOT actual_builtins_sha STREQUAL expected_builtins_sha)
message(FATAL_ERROR "compiler-rt builtins hash mismatch: expected ${expected_builtins_sha}, found ${actual_builtins_sha}")
endif()
diff --git a/cmake/HomebrewUI.cmake b/cmake/HomebrewUI.cmake
index 6fb5545..e45ffb0 100644
--- a/cmake/HomebrewUI.cmake
+++ b/cmake/HomebrewUI.cmake
@@ -274,8 +274,10 @@ target_link_libraries(playden_homebrew_ui PUBLIC
playden_homebrew_model playden_homebrew_qr playden_hui playden_homebrew_artwork_cache)
if(PLAYDEN_PLATFORM_PS5)
+ file(READ "${CMAKE_SOURCE_DIR}/dependencies.lock.json" playden_dependency_lock)
+ string(JSON playden_gl_version GET "${playden_dependency_lock}" ps5_opengl version)
target_include_directories(playden_hui PUBLIC
- "${PLAYDEN_PS5_DEPS_DIR}/ps5-opengl/ps5-opengl-sdk-1.0.0/sdk/include")
+ "${PLAYDEN_PS5_DEPS_DIR}/ps5-opengl/ps5-opengl-sdk-${playden_gl_version}/sdk/include")
target_compile_definitions(playden_hui PUBLIC GL_GLEXT_PROTOTYPES=1)
target_compile_options(playden_hui PUBLIC -fno-exceptions -fno-rtti)
target_compile_options(playden_homebrew_model PUBLIC -fno-exceptions -fno-rtti)
diff --git a/dependencies.lock.json b/dependencies.lock.json
index 1dfa157..4744bd2 100644
--- a/dependencies.lock.json
+++ b/dependencies.lock.json
@@ -39,12 +39,13 @@
"source": "tools/self-update-relaunch/main.c; build with scripts/build-self-update-relaunch.sh (reproducible; sent by Playden to the payload loader on 127.0.0.1:9021 when it quits to finish an update)"
},
"ps5_opengl": {
- "version": "1.0.0",
- "source_revision": "e9c1104e83e9466637b7f79c350ee164bf772459",
- "sdk_url": "https://github.com/blackbearreloaded/ps5-opengl/releases/download/v1.0.0/ps5-opengl-sdk-1.0.0.tar.gz",
- "sdk_sha256": "f93643c04c843d56143b00951df1f8042ea7706ae9f19e4e9abf158e1ead77c5",
+ "version": "1.0.2",
+ "source_revision": "a519561626933257213d64a4a8bd5e02b55dceb2",
+ "sdk_url": "https://github.com/darkxex/ps5-opengl/releases/download/v1.0.2/ps5-opengl-sdk-1.0.2.tar.gz",
+ "sdk_sha256": "30d8e51dd062739b629346102be5932728ba714bc50b1bdcdf08306c8843d9a4",
+ "sdk_manifest_sha256": "0d432edc9d648d6e0cccb4d5eb3db8484f10ba4b075b5ccf23edda3251b66360",
"libPS5OpenGL_sha256": "11ab03a347cf75e143c7aa896ff0fd94714ded471a92146aa0f2aba82722ae95",
- "source": "third_party/ps5-opengl submodule, fork branch main (v1.0.0 dce7491 plus the legacy varying-linkage fix; native-app files unchanged)"
+ "source": "third_party/ps5-opengl submodule, fork branch main: the v1.0.2 tree (original tag a519561, kept as darkxex/ps5-opengl 6b6bb20 after the original repository was removed) with this fork's CI settings. sdk_manifest_sha256 pins sdk/manifest.sha256, which lists every SDK file; libPS5OpenGL.a is only a linker script naming the real libraries"
},
"ps5_native_app_boilerplate": {
"revision": "f98de734b68b0b980d38ff03a330066afd6ae16d",
diff --git a/scripts/fetch-deps.sh b/scripts/fetch-deps.sh
index 7e68fd5..9111e91 100755
--- a/scripts/fetch-deps.sh
+++ b/scripts/fetch-deps.sh
@@ -60,8 +60,11 @@ if ! fresh "$deps/ps5-opengl" "$gl_sha"; then
tar -xzf "$downloads/ps5-opengl-sdk-$gl_version.tar.gz" -C "$deps/ps5-opengl"
stamp "$deps/ps5-opengl" "$gl_sha"
fi
-library="$deps/ps5-opengl/ps5-opengl-sdk-$gl_version/sdk/lib/libPS5OpenGL.a"
-[[ $(sha256 "$library") == "$(lock ps5_opengl libPS5OpenGL_sha256)" ]] || { echo "libPS5OpenGL.a hash mismatch" >&2; exit 1; }
+gl_sdk="$deps/ps5-opengl/ps5-opengl-sdk-$gl_version/sdk"
+[[ $(sha256 "$gl_sdk/lib/libPS5OpenGL.a") == "$(lock ps5_opengl libPS5OpenGL_sha256)" ]] || { echo "libPS5OpenGL.a hash mismatch" >&2; exit 1; }
+# libPS5OpenGL.a only names the real libraries; the SDK's manifest lists every file with its hash.
+[[ $(sha256 "$gl_sdk/manifest.sha256") == "$(lock ps5_opengl sdk_manifest_sha256)" ]] || { echo "ps5-opengl SDK manifest hash mismatch" >&2; exit 1; }
+(cd "$gl_sdk" && shasum -a 256 -c --quiet manifest.sha256) || { echo "ps5-opengl SDK files do not match its manifest" >&2; exit 1; }
echo "Ready: $deps/ps5-opengl"
rt_sha=$(lock compiler_rt_builtins archive_sha256)
diff --git a/third_party/ps5-opengl b/third_party/ps5-opengl
index 7234923..384d1bd 160000
--- a/third_party/ps5-opengl
+++ b/third_party/ps5-opengl
@@ -1 +1 @@
-Subproject commit 7234923772a4b490e3d334fb16c1134f4a307b88
+Subproject commit 384d1bda05e1b35da9e3eb157d6829b1b681dd03