feat(libSceSysmodule): register missing user and internal sysmodule IDs #6242
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6242"
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 fogydes on 2026-10-15T06:48:25Z.
What
Registers missing PlayStation 5 sysmodule IDs in
core/libs/prx/libSceSysmodule/ModuleTable.hpp:libScePerf,libSceDeci5,libScePlayerSelectionDialog,libSceFrontPanelDisplay,libSceTextToSpeech2,libSceCdlgG2P,libSceCdlgPlayerReview,libSceDepth2,libSceHmd2,libSceVrTracker2,libSceVrSetupDialog).libSceAgcDriver,0x80000080), VSH interface (libSceAgcVsh,0x80000086), audio/DSP services (libSceAjmi,0x8000007e), AMPR (libSceAmpr,0x800000b7), social screen (libSceSocialScreen,0x800000ae), and resource registration (libSceAgcResourceRegistration,0x80000093).0x132mapping in favour oflibSceProprietaryVoiceChatHelperPrxonmain, and drops duplicate0x800000c2solibSceRazorCpuis uniquely defined at0x80000075.libSceNgs2at 0x0000000b / 0x80000090;libSceHdrScopesat 0x00000109 / 0x800000bd) indocs/dev/debt/libSceSysmodule.mdunder "Unknown function info".Many of these modules (
libSceAgcDriver,libSceAgcVsh,libSceAjmi,libSceAmpr,libSceCdlgG2P,libSceCdlgPlayerReview,libSceHmd2,libScePlayerSelectionDialog,libSceTextToSpeech2,libSceVrSetupDialog,libSceVrTracker2) are already implemented incore/libs/prx/, but calls tosceSysmoduleLoadModuleorsceSysmoduleLoadModuleInternalthrew runtime errors or failed to record load state because their IDs were missing fromkModuleTable.Tested
core/libs/tests/GuestSysmodule.cppverifying load/status/unload lifecycles for newly added user and internal IDs (kPerfModuleId0x0005,kVrSetupDialogModuleId0x0130,kAgcDriverModuleId0x80000080,kNgs2InternalModuleId0x80000090,kHdrScopesInternalModuleId0x800000bd). Onmain, querying these IDs throws runtime errors or fails; with this PR,guest_sysmodulepasses 100%.ctest --test-dir build-libs -R guest_sysmodule -Vpasses (1/1 passed).python tools/check_conventions.py --base origin/mainpasses with zero violations.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 MarcZX10 on 2026-10-18T19:24:27Z.
There is a concrete naming mismatch in the proposed
0x132entry.sceSysmoduleGetModuleHandleInternalpasses the table name toopenHostModule, which constructslibs/<name>.prx(core/libs/prx/libSceSysmodule/Export.cpp:37,159-173). The CMake target for this implementation islibSceProprietaryVoiceChatHelperPrx, and the common PRX setup emits${LIB_NAME}.prx, so the built artifact islibs/libSceProprietaryVoiceChatHelperPrx.prx. This PR’s mapping tolibSceProprietaryVoiceChatHelperwould instead look forlibs/libSceProprietaryVoiceChatHelper.prx, which is not produced. Open PR #6370 has the name matching the actual target, plus module lookup/load/unload coverage. Please coordinate the duplicate0x132mapping and use the artifact name (or explain if a different artifact is intended).Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-18T19:26:26Z.
Review: CHANGES_REQUESTED
Thanks for the PR. Points to fix:
ModuleTable.hpp:174:0x132maps tolibSceProprietaryVoiceChatHelper, butopenHostModuleloadslibs/<name>.prx(Export.cpp:38) and the built artifact islibSceProprietaryVoiceChatHelperPrx.prx. #6370 already adds this ID with the right name plus a test; drop this entry here.core/libs/tests/GuestSysmodule.cppthat load/query a few of the new IDs (user and internal) and fail onmain.docs/dev/debt/libSceSysmodule.mdunder "Unknown function info".libSceNgs2at0xband0x80000090,libSceHdrScopesat0x109and0x800000bd,libSceRazorCpuat0x80000075and0x800000c2): explain why, or confirm against the source that they are distinct modules.Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T05:22:04Z.
Thanks for the review @adriadam10 and @MarcZX10. Addressed all points:
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T05:28:16Z.
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)core/libs/tests/GuestSysmodule.cppL274Some 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/GuestSysmodule.cpp