feat(libScePsml): build libScePsml from the libScePsml_debug source #2412

Merged
MathiasDevelopes merged 1 commit from upstream-pr/2412 into main 2026-10-10 09:13:55 +00:00
MathiasDevelopes commented 2026-10-09 18:31:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MathiasDevelopes on 2026-10-09T18:31:19Z.


What

Titles that link the release PSML module, libScePsml.prx, failed to start: no host library had that name, and the Windows loader stopped with Failed to load module: ...\libs\libScePsml.prx (error 126). Sword of the Sea (PPSA25344) links it. Only the debug module, libScePsml_debug, existed.

Both modules are now built from the same source. A shared add_sce_psml_library function builds each of them, following the libSceFont / libSceFont-module pattern. PPSA25344 imports nine Mfsr functions from libScePsml. Eight of them already exist. The ninth, scePsmlMfsrGetDispatchMfsrPacket1000, is added without an implementation: it calls NotImplemented_nid_no_patch, and its unknown signature is recorded in TechnicalDebt.

Tested

Windows 11, MinGW-w64 15.2.0. The built libScePsml.prx exports all nine NIDs that PPSA25344 imports from it. guest_psml and patched_libraries pass. The full suite was not run. tools/check_conventions.py --base origin/main passes. PPSA25344 loads libScePsml.prx and continues to engine startup; it does not call the new export there. Not built or run on Linux or macOS.

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 (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none. #1498 and #2193 change libScePsml_debug/Export.cpp; whichever lands second needs a small rebase.
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4804372927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2412). Originally posted by [MathiasDevelopes](https://github.com/MathiasDevelopes) on 2026-10-09T18:31:19Z. --- ### What Titles that link the release PSML module, `libScePsml.prx`, failed to start: no host library had that name, and the Windows loader stopped with `Failed to load module: ...\libs\libScePsml.prx` (error 126). Sword of the Sea (PPSA25344) links it. Only the debug module, `libScePsml_debug`, existed. Both modules are now built from the same source. A shared `add_sce_psml_library` function builds each of them, following the `libSceFont` / `libSceFont-module` pattern. PPSA25344 imports nine Mfsr functions from `libScePsml`. Eight of them already exist. The ninth, `scePsmlMfsrGetDispatchMfsrPacket1000`, is added without an implementation: it calls `NotImplemented_nid_no_patch`, and its unknown signature is recorded in TechnicalDebt. ### Tested Windows 11, MinGW-w64 15.2.0. The built `libScePsml.prx` exports all nine NIDs that PPSA25344 imports from it. `guest_psml` and `patched_libraries` pass. The full suite was not run. `tools/check_conventions.py --base origin/main` passes. PPSA25344 loads `libScePsml.prx` and continues to engine startup; it does not call the new export there. Not built or run on Linux or macOS. ### 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 (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none. #1498 and #2193 change `libScePsml_debug/Export.cpp`; whichever lands second needs a small rebase. - [x] AI-assisted: yes
copilot-pull-request-reviewer[bot] commented 2026-10-09 18:31:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-09T18:31:25Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5473929405 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2412#pullrequestreview-5473929405). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-09T18:31:25Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
github-actions[bot] commented 2026-10-09 18:31:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T18:31:30Z.


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:6086917130 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2412#issuecomment-6086917130). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T18:31:30Z. --- 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.
github-actions[bot] commented 2026-10-09 18:31:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T18:31:45Z.


Progress report (f8c2f07 → d5721f3)

📉 System libraries: 84.66% (-0.03%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libScePsml_debug scePsmlMfsrGetDispatchMfsrPacket1000
🔗 1 now sharing sources
Library Name
libScePsml libScePsml_debug
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6086921296 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2412#issuecomment-6086921296). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T18:31:45Z. --- <!-- progress-report --> ### Progress report (f8c2f07 → d5721f3) 📉 **System libraries**: 84.66% (-0.03%, +1 declared functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libScePsml_debug | `scePsmlMfsrGetDispatchMfsrPacket1000` | </details> <details> <summary>🔗 1 now sharing sources</summary> | Library | Name | | - | - | | libScePsml | `libScePsml_debug` | </details>
adriadam10 commented 2026-10-10 09:13:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T09:13:52Z.


Checked on Linux: libScePsml and libScePsml_debug build from the same source, libScePsml.prx exports scePsmlMfsrGetDispatchMfsrPacket1000 and the Mfsr set, patched_libraries, guest_psml and the scoped ctest pass, and the new TechnicalDebt line is in the right section. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096014969 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2412#issuecomment-6096014969). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T09:13:52Z. --- Checked on Linux: `libScePsml` and `libScePsml_debug` build from the same source, `libScePsml.prx` exports `scePsmlMfsrGetDispatchMfsrPacket1000` and the Mfsr set, `patched_libraries`, `guest_psml` and the scoped ctest pass, and the new TechnicalDebt line is in the right section. Merging.
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!2412
No description provided.