feat(libs): add unimplemented PS5 system library stubs and debt docs #7416
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7416"
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 mohammad-alosta on 2026-10-18T05:22:00Z.
What
Adds the PS5 system libraries PPSA03332 links but AnyPS5 does not provide, so the title gets past the loader instead of stopping on
libSceAt9Enc.prx: cannot open shared object file, plus one SystemService silent stub.libSceAt9Enc(sysmodule id0x000000d1): five exports, names from the aerolib NID list, signatures from orbital'sdb_types.json. Every export throwsNotImplemented_nid_no_patch(__func__); there is no encoder behind them.libSceM4aacEnc(sysmodule id0x000000bc): seventeen exports, names from the aerolib NID list. Five signatures come from orbital; the other twelve (*Ex,*WithPriority,sceM4aacEncGetContext,Initialize,Terminate) are declared without parameters because no reference gives them. Every export throws.sceSystemServiceShowDisplaySafeAreaSettingsreturns success without showing anything, like the neighbouringsceSystemServiceShowControllerSettings: AnyPS5 has no system UI to open.Each library has a
CMakeLists.txtthat builds it and registers a guest test, and each debt file records the missing behaviour underUnknown function info.Changes since the review:
libSceCamera,libSceDepth2,libSceSulpha,libSceAudiodecCpu(overlaps #6847) andlibSceAudiodecCpuHevag, whose only export was a made-upsceAudiodecCpuHevagUnimplementedthat matches no real symbol. Only libraries whose real exports and signatures are known remain.docs/dev/debt/libSceSystemService.md: thesceSystemServiceOpenChallengeActivityline is intact and the new entry is its own line.sysmodule id 0xunknownentry is gone.guest_at9_encandguest_m4aac_enccall every new export and require it to throw, and the existingguest_system_servicechecks the new silent stub.Tested
Linux (x86-64).
ninja -C build libsbuilds and NID-patches every library, the two new ones included.ctest -R "guest_at9_enc|guest_m4aac_enc|guest_system_service"passes all three. The conventions check passes against currentmain.PPSA03332 on Linux (x86-64): both libraries are in the title's
DT_NEEDED, so the loader resolves them before any title code runs, and without them the title stops at start-up withWith the stubs the title loads and runs until a later, separate stop in the AGC driver (its CMASK partial-fill refusal), which this PR does not address. The libraries are needed before any call to them can happen; the guest tests check that every export throws rather than returning a made-up success.
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-18T05:22:40Z.
Progress report (
c21eef3→93a2bcb)📉 System libraries: 71.6% (-0.27%, +1 implemented, +22 declared functions)
✅ 1 implemented
sceSystemServiceShowDisplaySafeAreaSettings⚪ 1 behaviourally empty (constant return or throw)
sceSystemServiceShowDisplaySafeAreaSettings🆕 22 declared as stubs
sceAt9EncClearContextsceAt9EncCreateEncodersceAt9EncEncodesceAt9EncFlushsceAt9EncQueryMemSizesceM4aacEncClearContextsceM4aacEncClearContextExsceM4aacEncCreateEncodersceM4aacEncCreateEncoderExsceM4aacEncDeleteEncodersceM4aacEncDeleteEncoderExsceM4aacEncEncodesceM4aacEncEncodeExsceM4aacEncEncodeWithPrioritysceM4aacEncEncodeWithPriorityExsceM4aacEncFlushsceM4aacEncFlushExsceM4aacEncFlushWithPrioritysceM4aacEncFlushWithPriorityExsceM4aacEncGetContextsceM4aacEncInitializesceM4aacEncTerminateImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T05:33:23Z.
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.
core/libs/tests/GuestSystemService.cppcore/libs/prx/libSceSystemService/Export.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T14:37:21Z.
Review: CHANGES_REQUESTED
Thanks for the PR. Problems found:
core/libs/prx/libSceAt9Enc,libSceAudiodecCpu,libSceAudiodecCpuHevag,libSceCamera,libSceDepth2,libSceM4aacEnc,libSceSulpha) has aCMakeLists.txt(comparelibSceUsbd), so nothing is compiled or registered. The claim that all seven built does not hold for these files.docs/dev/debt/libSceSystemService.md: the diff deletes the existingsceSystemServiceOpenChallengeActivityline and glues it onto the new one (...Observed with PPSA03332- [sceSystemServiceOpenChallengeActivity]...). Restore the original line and add yours separately, away from the end of the section.core/libs/prx/<lib>implementation" and "only its entry in the sysmodule table exists", which this PR makes false.libSceDepth2.mdsays sysmodule id0xunknown.libSceAt9Enc.mdmixes the "related libraries" list into one file and is missing a blank line before## Signatures.libSceAudiodecCpuoverlaps with #6847 (sceAudiodecCpuClearContext/Decode/InitDecoder/QueryMemSize). Coordinate or drop it from this PR.Unimplementedexport for Hevag, which matches no real symbol. Please keep to libraries a title actually calls, with a log or a test, and drop invented exports.sceSystemServiceShowDisplaySafeAreaSettingsreturning OK has no test and no source for the signature.Welcome to push a revised version with those addressed.
Imported from boykopovar/AnyPS5. Originally posted by mohammad-alosta on 2026-10-20T02:39:58Z.
All six points are addressed; the branch is rebased onto current
main(11 files: twolibraries, one silent stub, three tests, three debt files).
CMakeLists.txt: both remaining libraries have one now, followinglibSceUsbd; eachbuilds the library and registers a guest test. The other five directories are gone.
libSceSystemService.md: thesceSystemServiceOpenChallengeActivityline is intact andthe new entry is its own line.
### Unknown function info, describing the throwing stubsthis PR adds;
libSceDepth2.md, the0xunknownid and the stray## Signaturesheading are gone.
libSceAudiodecCpu: dropped.12 M4aacEnc exports are declared without parameters, and the made-up Hevag export is
gone. They are
DT_NEEDEDby PPSA03332, so the evidence is the load: without them thetitle stops at
libSceAt9Enc.prx: cannot open shared object file(log in thedescription); the AGC CMASK stop after it is separate.
guest_at9_encandguest_m4aac_enccheck that every export throws.guest_system_service. No public source has its signature(not Orbital, SharpProspero or the 3.20 export list), so the entry records it as the
assumed no-argument signature of its sibling
sceSystemServiceShowControllerSettings,which is the same silent UI stub.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T15:05:38Z.
Re-checked against the previous review: the stub libraries with unknown signatures and the #6847 overlap are gone, both remaining libraries have a
CMakeLists.txtand a registered guest test, thesceSystemServiceOpenChallengeActivitydebt line is intact, and the debt entries sit under### Unknown function infoand describe the throwing stubs. The newsceSystemServiceShowDisplaySafeAreaSettingsstub has a test and a debt line noting its assumed signature; merged.