feat(prx): declare the missing PS5 3.20 system exports #8106
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8106"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-19T21:50:43Z.
What
Declares 154 PS5 3.20 system exports that AnyPS5 does not provide, across 30 libraries.
AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 154 such exports across 30 PS5 system libraries that AnyPS5 implements but does not provide. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs.
Every declaration calls
NotImplemented_nid_no_patchand returns 0; none of them implements the function. A declaration with a credible prototype uses it and cites the source with a pinned commit. The rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.Names and NIDs come from the PS5 3.20 export inventory at
github.com/DNNDHH/PS5-3.20_Libs@b2a77c09cdLeft out, and why:
libSceMbusandlibSceSystemServiceare declared by #7821.libSceAgcexports versioned names (sceAgcFuseShaderHalves_0200), so the 3.20 NID names a different symbol from the one AnyPS5 ships.libSceAvPlayer.nativecompileslibSceAvPlayer/Export.cpp, so declaring there covers it.libSceBluetoothHid,libSceAudiodec,libSceAvPlayer,libSceContentExport,libScePad, twolibSceNpAuthexports and onelibSceSysmoduleexport are provided by #6832, #6847, #6852, #7846, #7881, #7890, #6977 and #7889.libSceVrTracker2is provided by #7463 and #7690, andlibSceVideodecis left to #8094, which creates the library and its technical-debt file.tools/pr_overlap.pyreports no shared export with any open pull request. It reports five open pull requests that edit the same technical-debt file (#7064, #7479, #7567, #7574 and #7726) without sharing an export; this change adds a separate bullet to those files, so a rebase resolves them.tools/progress.pyreports system libraries changing from 4137/5182 (79.83%) to 4137/5336 (77.53%). These are pending declarations, so the implemented count is unchanged.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.
cmake --build build --parallel, no error.ctest --test-dir build --output-on-failure -j4: 1651 of 1652 pass.guest_sysmodulefails identically onorigin/main(it aborts with "unknown id: 65535" insceSysmoduleIsLoaded), so it is a pre-existing failure and not a regression. Thevideo_out_*tests that need a display are skipped.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/check_test_registration.py build: 1098 test executables, none unregistered.python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports: no shared export with any open pull request.tools/nid_names.pyagainst the inventory, and every symbol was checked againstorigin/mainso that no NID is exported twice.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T21:57:24Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceAcm.mdL9-10docs/dev/debt/libSceRudp.mdL15docs/dev/debt/libSceNet.mdL8sceNetEtherStrtondocs/dev/debt/libSceNet.mdL8Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceNgs2/CMakeLists.txtcore/libs/prx/libSceAjm.native/Export.cppcore/libs/prx/libSceSysmodule/Export.cppcore/libs/prx/libSceNet/Export.cppdocs/dev/debt/libSceNet.mddocs/dev/debt/libSceNpSessionSignaling.mdcore/libs/prx/libSceNgs2/CMakeLists.txtcore/libs/prx/libSceSaveData.native/Export.cppcore/libs/prx/libSceDiscMap/Export.cppcore/libs/prx/libSceNpAuth/Export.cppcore/libs/prx/libSceSaveData.native/Export.cppdocs/dev/debt/libSceDiscMap.mdcore/libs/prx/libSceFiber/Export.cppdocs/dev/debt/libSceFiber.mdcore/libs/prx/libSceNet/Export.cppcore/libs/prx/libSceNet/Export.cppcore/libs/prx/libSceSysmodule/Export.cppcore/libs/prx/libSceJpegDec/Export.cppImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-20T07:49:38Z.
Rebase handoff — rebased onto current
main(3fd1cc393, all three commits, authorship unchanged). Your series is self-deduplicating (commit 2 drops what commit 1 declares wheremainprovides it), which needed two adaptations against currentmain:main's exports, commit 2 drops them) — but during the rebase the intermediate state replacedmain's stubs, and the final drop then leftmain'sguest_bluetooth_hidtest with nothing to link against. The rebase restoresmain's stub block, so the file ends exactly where your series intends it: unchanged frommain.main's newer entries (Acm, PlayGo, WebBrowserDialog); for SystemGesture and VrTracker2,main's current entries are kept and your newUnknown function infoentries appended under the same section — your commit 2 then removes the VrTracker2 one itself, which I applied as a deletion of only your entry (main's own VrTracker2 debt stays).Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds;guest_bluetooth_hid,guest_playgo,guest_vr_tracker2,guest_web_browser_dialogpass; 1672/1675 — green apart from the three knownmainfailures (#7584 BDA, #7784 guest-memory, tessellation), none from this PR; conventions pass (one pre-existing[debt-length]finding, warnings only).Note for the thread: this PR is in the same family as #8021/#8028, where oneandonlydean is asking which database the unbacked names come from — the same answer will likely be wanted here for the parameterized BluetoothHid declarations.
To pick it up:
Head is
f2ebaa3e8.