feat(libSceSysmodule): register libSceShare module ID (0x10F) #3841

Merged
Kikoarl merged 1 commit from upstream-pr/3841 into main 2026-10-12 04:31:46 +00:00
Kikoarl commented 2026-10-11 17:48:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-11T17:48:29Z.


What

During boot of Astro Bot (PPSA02158), the game logs:
[libSceSysmodule/Export.cpp:140 sceSysmoduleLoadModule] unknown id: 271

Decimal 271 is 0x010f (0x10F). The libSceShare PRX is already in the tree (core/libs/prx/libSceShare), but kModuleTable was missing the mapping for this module ID.
This registers {0x0000010f, "libSceShare"} in kModuleTable and adds unit test coverage in core/libs/tests/GuestSysmodule.cpp verifying that sceSysmoduleLoadModule(0x010f) and sceSysmoduleUnloadModule(0x010f) succeed.

Tested

  • Linux (x86_64, Arch Linux):
    • guest_sysmodule passes (2/2 tests passed).
    • Verified sceSysmoduleLoadModule(0x010f) succeeds and properly loads libSceShare.
    • Ran python3 tools/check_conventions.py --base origin/main -> Passed.
    • Ran python3 tools/pr_overlap.py --branch feat/sysmodule-share-module-id -> No overlap with open pull requests.

Checklist

  • Based on current main; no other open PR implements the same function
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw
  • No notes, investigation files or images added
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4821067307 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3841). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-11T17:48:29Z. --- ### What During boot of Astro Bot (PPSA02158), the game logs: `[libSceSysmodule/Export.cpp:140 sceSysmoduleLoadModule] unknown id: 271` Decimal 271 is `0x010f` (`0x10F`). The `libSceShare` PRX is already in the tree (`core/libs/prx/libSceShare`), but `kModuleTable` was missing the mapping for this module ID. This registers `{0x0000010f, "libSceShare"}` in `kModuleTable` and adds unit test coverage in `core/libs/tests/GuestSysmodule.cpp` verifying that `sceSysmoduleLoadModule(0x010f)` and `sceSysmoduleUnloadModule(0x010f)` succeed. ### Tested - Linux (x86_64, Arch Linux): - `guest_sysmodule` passes (2/2 tests passed). - Verified `sceSysmoduleLoadModule(0x010f)` succeeds and properly loads `libSceShare`. - Ran `python3 tools/check_conventions.py --base origin/main` -> Passed. - Ran `python3 tools/pr_overlap.py --branch feat/sysmodule-share-module-id` -> No overlap with open pull requests. ### Checklist - [x] Based on current `main`; no other open PR implements the same function - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw - [x] No notes, investigation files or images added - [x] No new third-party code - [x] Generic behaviour, not specific to one title - Depends on: none - AI-assisted: yes
Mouhand-Kaddo commented 2026-10-11 20:36:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T20:36:09Z.


Windows integration result with a legal Demon's Souls PPSA01342 v1.04 copy (BuildVersion 2020-12-09.781263), Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF, main a11c8f7f7 + #3716 + this PR. guest_sysmodule passed (1/1).

With #3716 alone the title asserts at sceSysmoduleLoadModule(0x010f) => 0x805a1000 in PS5PlatformServices.cpp:477 at 6.06 seconds. This Share registration removes that assertion. The combined run loaded the resource catalog, but remained in audio initialization for the 600-second test: submitted serial 1, completed serial 0. No main menu was reached; this is confirmation of the Share-module blocker being removed, not a complete boot fix. I have not tested this PR on Linux yet.

AI-assisted testing and report.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113476253 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3841#issuecomment-6113476253). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-11T20:36:09Z. --- Windows integration result with a legal Demon's Souls PPSA01342 v1.04 copy (BuildVersion 2020-12-09.781263), Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF, main a11c8f7f7 + #3716 + this PR. guest_sysmodule passed (1/1). With #3716 alone the title asserts at `sceSysmoduleLoadModule(0x010f) => 0x805a1000` in PS5PlatformServices.cpp:477 at 6.06 seconds. This Share registration removes that assertion. The combined run loaded the resource catalog, but remained in audio initialization for the 600-second test: submitted serial 1, completed serial 0. No main menu was reached; this is confirmation of the Share-module blocker being removed, not a complete boot fix. I have not tested this PR on Linux yet. AI-assisted testing and report.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3841
No description provided.