Repository navigation
feat(libSceSysmodule): register missing user and internal sysmodule IDs - #6242
Conversation
|
There is a concrete naming mismatch in the proposed |
adriadam10
left a comment
There was a problem hiding this comment.
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.- No test: add cases in
core/libs/tests/GuestSysmodule.cppthat load/query a few of the new IDs (user and internal) and fail onmain. - Say where the IDs and names come from (reference, firmware dump, title import). The body gives no source for any of the 64 entries; every ID not backed by one needs a line in
docs/dev/debt/libSceSysmodule.mdunder "Unknown function info". - Some names repeat across IDs (
libSceNgs2at0xband0x80000090,libSceHdrScopesat0x109and0x800000bd,libSceRazorCpuat0x80000075and0x800000c2): explain why, or confirm against the source that they are distinct modules. - "Tested" mentions the relinker suite, which doesn't exercise this table; list the test that does.
9888216 to
fcdf046
Compare
|
Thanks for the review @adriadam10 and @MarcZX10. Addressed all points:
|
|
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.
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.
|
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)