feat(libSceSysmodule): register libSceAcm (0x10B) and libSceShare (0x10F) #3240

Closed
Tamalero wants to merge 1 commit from upstream-pr/3240 into main
Tamalero commented 2026-10-11 03:09:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-11T03:09:51Z.


What

Registers two module ids that titles load, which ModuleTable.hpp doesn't name: 0x10B (libSceAcm) and 0x10F (libSceShare).

  • Before: sceSysmoduleLoadModule logs unknown id: 267 / 271 and returns 0, and sceSysmoduleIsLoaded reports them as loaded before any load.
  • After: they're tracked like every other module.

Where the ids come from: a title's own call sites, not an SDK header (I have none), so please check them against a better source if you have one. In Marvel's Guardians of the Galaxy (PPSA01748):

  • sceSysmoduleLoadModule(0x10F) is called directly before sceShareInitialize, and sceSysmoduleUnloadModule(0x10F) directly after sceShareTerminate.
  • 0x10B is loaded and unloaded inside its audio middleware, and its only libSceAcm imports are called from that same code block. The Trophy2 and Share imports are called from a different part of the title.
  • Returning an error for 0x10B instead (local experiment, not part of this change) makes the title unload it and crash, so it's a required module.
  • The same method gives 0x110 = libSceNpTrophy2, which matches #2541, so that id is left out here.

Tested

Linux (CachyOS), GCC 16, Release, on current main.

  • guest_sysmodule passes. New loop for both ids: unloaded at first, loaded after sceSysmoduleLoadModule, unloaded after sceSysmoduleUnloadModule.
  • Negative check: the new cases abort with the current table.
  • PPSA01748 no longer logs unknown id: 267 / 271.
  • tools/check_conventions.py passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (related: #2541 registers 0x110)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4816204368 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3240). Originally posted by [Tamalero](https://github.com/Tamalero) on 2026-10-11T03:09:51Z. --- ### What Registers two module ids that titles load, which `ModuleTable.hpp` doesn't name: `0x10B` (`libSceAcm`) and `0x10F` (`libSceShare`). - **Before:** `sceSysmoduleLoadModule` logs `unknown id: 267` / `271` and returns 0, and `sceSysmoduleIsLoaded` reports them as loaded before any load. - **After:** they're tracked like every other module. **Where the ids come from:** a title's own call sites, not an SDK header (I have none), so please check them against a better source if you have one. In Marvel's Guardians of the Galaxy (PPSA01748): - `sceSysmoduleLoadModule(0x10F)` is called directly before `sceShareInitialize`, and `sceSysmoduleUnloadModule(0x10F)` directly after `sceShareTerminate`. - `0x10B` is loaded and unloaded inside its audio middleware, and its only `libSceAcm` imports are called from that same code block. The Trophy2 and Share imports are called from a different part of the title. - Returning an error for `0x10B` instead (local experiment, not part of this change) makes the title unload it and crash, so it's a required module. - The same method gives `0x110` = `libSceNpTrophy2`, which matches #2541, so that id is left out here. ### Tested Linux (CachyOS), GCC 16, Release, on current `main`. - `guest_sysmodule` passes. New loop for both ids: unloaded at first, loaded after `sceSysmoduleLoadModule`, unloaded after `sceSysmoduleUnloadModule`. - Negative check: the new cases abort with the current table. - PPSA01748 no longer logs `unknown id: 267` / `271`. - `tools/check_conventions.py` passes. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (related: #2541 registers `0x110`) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-11 03:10:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T03:10:00Z.


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104898689 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3240#issuecomment-6104898689). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T03:10:00Z. --- 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.

Pull request closed

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!3240
No description provided.