fix(libSceSysmodule): register Trophy2 module ID #2541
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2541"
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 maoxin1234 on 2026-10-10T02:52:41Z.
What
Register sysmodule ID
0x00000110aslibSceNpTrophy2. Extend theguest_sysmoduletest to cover Trophy2 lookup and nested load/unload reference counts.Evidence
astrelsky/libNidResolversource/sysmodules.cmapslibSceNpTrophy2to ID0x110.sceSysmoduleLoadModulereceiving unknown ID272(decimal), which is0x110in hexadecimal. This confirms the requested ID in that run; it does not establish a PPSA ID or call-site disassembly.Tested
ninja -C build-hades guest_sysmodule_tests— passed.ctest --test-dir build-hades -R '^guest_sysmodule$' --output-on-failure— 1/1 passed.Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T02:52:51Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T09:08:32Z.
Review: CHANGES_REQUESTED
Build and
guest_sysmodulepass, and the new test fails without theModuleTable.hppline. One thing blocks this:core/libs/prx/libSceSysmodule/ModuleTable.hpp:152: there is no source for0x00000110=libSceNpTrophy2. SharpProspero'sSysmoduleMap.cslists Trophy2 under a different numbering (0x800000D6, where this table haslibSceUsbStorageDialog), and I found no reference (KytyPS5, shadPS4, prosper) giving0x110. A wrong ID makes a title load the wrong module silently. Please cite where it comes from (a title callingsceSysmoduleLoadModule(0x110)and its PPSA id, a disassembly of the call site, or a reference table) in the PR body.Once the source is there this is ready to merge.
Imported from boykopovar/AnyPS5. Originally posted by maoxin1234 on 2026-10-10T09:35:00Z.
Thanks for the review. I added the mapping source to the PR body: the
libNidResolversysmodule table explicitly mapslibSceNpTrophy2to0x110(linked there). As runtime corroboration, the Hades startup log recordssceSysmoduleLoadModulereceiving ID272decimal (0x110). I have not established a PPSA ID or call-site disassembly, so the mapping reference is the source for the ID-to-module association.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T09:44:16Z.
Updated validation on current upstream
mainThe source requested in the review is now cited in the PR body:
libNidResolver/source/sysmodules.cmapslibSceNpTrophy2to sysmodule ID0x110. The Hades log's decimal272is consistent runtime corroboration, but the table is the direct mapping evidence.I reapplied the current PR diff (two files) to upstream
mainat507f49fbin an isolated worktree. It applies cleanly.guest_sysmodule_tests(Linux x86_64, GCC 12.2, Release)guest_sysmodulemaingit diff --checkThis verifies the registration and nested reference-count behavior in the focused test; I did not run Hades. The PR's automatic Linux/Windows full builds and relinker matrix are skipped for contributor eligibility. Per
CONTRIBUTING.md, a collaborator still needs to trigger the exact-head Build workflow onmainbefore merge. The existing CHANGES_REQUESTED review also still awaits re-review after the cited source was added.The same two-file change was present in my intake-closed #2609. I have not reopened it or opened a replacement to work around intake; #2541 remains the open carrier of the original contributor's change. AI-assisted change.
Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T10:04:49Z.
Additional platform validation on standalone PR head
c916b428f93431a726ceae32c104f4f1c7e2279d:Linux: passed — Arch Linux in WSL2 (kernel 6.6.87.2), GCC 16.2.1 20260810; CMake 4.3.1 / Ninja.
Release /
BUILD_TESTING=ON: built the selected test targets; 1 CTest cases, 0 failures, 0 CTest skips.Tests:
guest_sysmodule.Reproduce after building the test targets:
ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^guest_sysmodule$".Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T10:56:55Z.
Review: APPROVED
The requested mapping source is now present in the PR body and directly maps
libSceNpTrophy2to0x110. I reapplied the two-file diff to currentmain507f49fb;guest_sysmodule_testsbuilt,guest_sysmodulepassed 1/1, and conventions plusgit diff --checkpassed.I approve the code change. This review does not replace the collaborator-triggered exact-head Linux/Windows Build and Linux/Windows/macOS relinker matrix required by
CONTRIBUTING.md; those jobs remain skipped in the PR checks.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T11:44:55Z.
Overlap and validation comparison with my #2609
The code diff in my intake-closed #2609 is identical to this PR's two-file change. I updated #2609's description with the direct
libNidResolvermapping reference and the scope of the runtime evidence now documented here.For automated CI coverage, #2609 has the broader green relinker matrix: Ubuntu, Windows, and macOS all passed there, while the relinker jobs on #2541 are skipped. Both PRs also have successful register-context checks; #2609 additionally has successful macOS write-watch checks. The full Linux and Windows Build jobs are skipped on both, so neither matrix establishes those builds.
The mapping source and Hades log in this PR are useful evidence, and its
guest_sysmodulevalidation is also recorded. Since #2609 was automatically closed by intake and the code diffs are identical, #2541 remains the open carrier. I am not asking to reopen or duplicate the change in #2609.Review state
The PR still reports
CHANGES_REQUESTEDfrom the earlier review, even though that reviewer said the cited source would clear the blocker. My approval does not clear the other reviewer's change request. Please request a re-review so the review state reflects the added mapping source.Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-10T12:36:47Z.
Windows check (Windows 11, WinLibs GCC 15.2.0 r7, Release), merged onto current
main197ffac9:guest_sysmodulemain+ test change onlymain+ this PR--repeat until-fail:3)ctest -E "^agc_|video_out"with the PR passes 379/379.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T09:38:34Z.
Review: APPROVED
Thanks for the source:
libNidResolversource/sysmodules.cmapslibSceNpTrophy2to0x110, which matches the table entry.Checked: the new
guest_sysmodulecase fails without theModuleTable.hppline and passes with it. The only conflict withmainwas adjacency incore/libs/tests/GuestSysmodule.cpp; I rebased and kept both blocks. Build and ctest of the touched directories are green (19/19). Also confirmed by @MarcZX100 and @Mouhand-Kaddo (Linux) and @AchrafReyani (Windows); merging.