feat(prx): declare the missing libSceAgcVsh exports #11971
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11971"
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-27T14:10:43Z.
What
Declares 46 PS5 3.20 system exports that AnyPS5 does not provide, in
libSceAgcVsh. The 45libSceGnmDriverForNeoModenames this branch previously declared are now implemented by open PR #9432 inlibSceGnmDriver, so they were removed here to avoid exporting the same NIDs twice (the project's duplicate-export check fails such a collision, and on Linux a throwing stub could shadow the real implementation depending on load order).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. Declaring them as throwing stubs lets those titles load and reach their next blocker.
Every declaration calls
NotImplemented_nid_no_patchand returns 0; none of them implements the function. All 46 are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.The list is the intersection of the export table of the console's library (function symbols only) and the pinned aerolib names, limited to exports not provided by this tree: 44 of the AgcVsh names are already implemented by libSceAgc on main, so those declarations exist only so titles importing libSceAgcVsh resolve, and are not claimed as new functionality. Every name recomputes to its NID with
tools/nid_names.py. It was computed withtools/export_gap.py(#8588), which recognises what a module already provides through anAPS5_VABIdeclaration, a_nid_postfixname, anAPS5_EXPORTbinding or a macro, and which reports the missing exports whose name the module calls itself.libSceAgcVshdeclares its exports as<base>_nid_no_patchbound withAPS5_EXPORT, following the file's own 150-entry precedent: the plainsceAgc*names are defined by siblinglibSceAgc, so plain definitions would collide at link time.libScePlayReady4was measured as part of this batch and left out: all of its inventory names are already provided bylibScePlayReadyandlibScePlayReady2, so declaring them would export the same NID twice.tools/pr_overlap.pyreports no shared export with any open pull request.tools/progress.pyreports system libraries changing from 6568/13463 (48.79%) to 6568/13509 (48.62%). These are pending declarations, so the implemented count is unchanged.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, Python 3.14.8, Release build.
python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/pr_overlap.py --branch feat/prx-declare-batch2: no shared export with any open pull request.tools/nid_names.pyagainst the inventory, every symbol was checked againstorigin/main(including_nid_postfixbases and macro-declared exports) so that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls.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)Pull request closed