Skip to content

feat(prx): declare the missing PS5 3.20 system exports - #8106

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
juanpimg:feat/prx-declare-ps5-3.20-exports
Oct 20, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
juanpimg:feat/prx-declare-ps5-3.20-exports

Conversation

@juanpimg

Copy link
Copy Markdown
Contributor

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_patch and 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
https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad

Left out, and why:

tools/pr_overlap.py reports 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.py reports 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.

  • Full build: cmake --build build --parallel, no error.
  • ctest --test-dir build --output-on-failure -j4: 1651 of 1652 pass. guest_sysmodule fails identically on origin/main (it aborts with "unknown id: 65535" in sceSysmoduleIsLoaded), so it is a pre-existing failure and not a regression. The video_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.
  • Every declared symbol's NID was checked with the project's own tools/nid_names.py against the inventory, and every symbol was checked against origin/main so that no NID is exported twice.
  • No title was run: the contributor has no PS5 and no game dumps.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AnyPS5 resolves a title's imports by NID, so a title that imports a system
function no library provides fails to load with an unresolved import. The
PS5 3.20 export inventory lists 193 such exports across 37 PS5 system
libraries AnyPS5 implements but does not provide.

Declare them as throwing stubs so those titles load and reach their next
blocker. Each declaration calls NotImplemented_nid_no_patch and returns 0;
none of them implements the function. Declarations with a credible
prototype use it and cite the source with a pinned commit, and the rest
are declared without parameters, which resolves the import without making
an ABI claim. The technical-debt files record the limitation per library.

libSceMbus and libSceSystemService are left out because pull request #7821
declares them. libSceAgc is left out because its exports are versioned, so
the 3.20 NID names a different symbol from the one AnyPS5 ships.
libSceAvPlayer.native is left out because it compiles libSceAvPlayer's
Export.cpp.

Names and NIDs come from the PS5 3.20 export inventory at
https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
The overlap audit against origin/main and the open pull requests found 39 of
the 193 declared exports that must not be declared here:

- 14 that origin/main already exports. The nid_patcher computes the NID of a
  symbol from its name, and a name ending in _nid_postfix exports the NID of
  the base name, so scePadOpen, sceNetInit and the rest are already there.
- 23 that an open pull request provides: #6832, #6847, #6852, #7846, #7881,
  #7889, #7890, #6977 and #7690.
- 2 whose technical-debt file an open pull request creates: #7463 and #8094.

The scope is now 30 libraries and 154 exports.
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7064 docs/dev/debt/libSceAcm.md L9-10
PR 7495 docs/dev/debt/libSceRudp.md L15
PR 8204 docs/dev/debt/libSceNet.md L8 sceNetEtherStrton
PR 8254 docs/dev/debt/libSceNet.md L8

Some 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.

Pull request Shared files not compared
PR 1384 core/libs/prx/libSceNgs2/CMakeLists.txt
PR 3205 core/libs/prx/libSceAjm.native/Export.cpp
PR 5021 core/libs/prx/libSceSysmodule/Export.cpp
PR 5836 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md
PR 6039 docs/dev/debt/libSceNpSessionSignaling.md
PR 6044 core/libs/prx/libSceNgs2/CMakeLists.txt
PR 6879 core/libs/prx/libSceSaveData.native/Export.cpp
PR 6977 core/libs/prx/libSceDiscMap/Export.cpp
core/libs/prx/libSceNpAuth/Export.cpp
core/libs/prx/libSceSaveData.native/Export.cpp
docs/dev/debt/libSceDiscMap.md
PR 7149 core/libs/prx/libSceFiber/Export.cpp
docs/dev/debt/libSceFiber.md
PR 7201 core/libs/prx/libSceNet/Export.cpp
PR 7332 core/libs/prx/libSceNet/Export.cpp
core/libs/prx/libSceSysmodule/Export.cpp
PR 8203 core/libs/prx/libSceJpegDec/Export.cpp

# Conflicts:
#	docs/dev/debt/libSceAcm.md
#	docs/dev/debt/libScePlayGo.md
#	docs/dev/debt/libSceSystemGesture.md
#	docs/dev/debt/libSceWebBrowserDialog.md
@blawesom

Copy link
Copy Markdown
Contributor

Rebase handoff — rebased onto current main (3fd1cc393, all three commits, authorship unchanged). Your series is self-deduplicating (commit 2 drops what commit 1 declares where main provides it), which needed two adaptations against current main:

  • BluetoothHid: your net effect on the file is zero (commit 1 declares parameterized versions of main's exports, commit 2 drops them) — but during the rebase the intermediate state replaced main's stubs, and the final drop then left main's guest_bluetooth_hid test with nothing to link against. The rebase restores main's stub block, so the file ends exactly where your series intends it: unchanged from main.
  • Debt files: your new 3.20-inventory entries unioned alongside main's newer entries (Acm, PlayGo, WebBrowserDialog); for SystemGesture and VrTracker2, main's current entries are kept and your new Unknown function info entries 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_dialog pass; 1672/1675 — green apart from the three known main failures (#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:

git fetch https://github.com/blawesom/AnyPS5 rebase/8106
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is f2ebaa3e8.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
@oneandonlydean
oneandonlydean merged commit 587bb34 into boykopovar:main Oct 20, 2026
2 checks passed
@juanpimg
juanpimg deleted the feat/prx-declare-ps5-3.20-exports branch October 28, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants