Skip to content

feat(libSceTtsEngine): add skeleton library and 11 firmware 13.60 stubs - #13361

Merged
adriadam10 merged 2 commits into
boykopovar:mainfrom
hypermoist:feat/libSceTtsEngine-skeleton-stubs
Oct 30, 2026
Merged

adriadam10 merged 2 commits into
boykopovar:mainfrom
hypermoist:feat/libSceTtsEngine-skeleton-stubs

Conversation

@hypermoist

@hypermoist hypermoist commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds libSceTtsEngine as a skeleton library. It isn't in AnyPS5 yet, but libSceTtsEngine.sprx from firmware 13.60 exports 11 symbols (read from the module's export table, not measured on a console). A title that imports this module now gets a libSceTtsEngine.prx to link against.

  • 11 stubs: one per function export no other library already defines, generated with tools/stubgen.py. 9 use their aerolib name, kept only where compute_nid reproduces the NID. 2 have no known name and are bound by NID as UnknownNN. Each one throws through NotImplemented_nid_no_patch. Signatures are unknown, so every declaration takes no parameters.
  • Debt: docs/dev/debt/libSceTtsEngine.md records that the names, signatures and behaviour are unverified.

Tested

Linux (CachyOS, GCC 16.2, Release), on head 2faeb777beca346348add396964fa5423a05c800: this branch with main at 50c39f09b500b17f10b18bb6ee6efe46aa525e47 merged in. The scripts are in this gist (see "Skeleton libraries" in its README). libSceTtsEngine.so is libSceTtsEngine.sprx of firmware 13.60, relinked with relinker --no-patches --skip-sce-module --skip-syscall-check --registry; the module isn't attached.

  • Generated files: deleting the library and its debt file and running skeleton_generate.py leaves git status empty, so the committed files are exactly its output (stubgen unchanged).
  • Build: the NID-patched .prx builds, and nid_patcher reports OK.
  • Exports: skeleton_check_prx.py checks that the built .prx exports every expected NID, repeats none from another library, and has no extra NID besides stubgen's UnknownNN helper names.
$ python3 -I skeleton_generate.py libSceTtsEngine.so . libSceTtsEngine aerolib.csv
libSceTtsEngine: 11 stubs (2 by NID), 0 exported elsewhere, 0 data objects
$ git status --porcelain
(end of status)
$ ninja -C build core/libs/libs/libSceTtsEngine.prx
OK: build/core/libs/libs/libSceTtsEngine.prx
$ python3 -I skeleton_check_prx.py build/core/libs/libs/libSceTtsEngine.prx libSceTtsEngine.so .
libSceTtsEngine: module exports 11 (0 data objects, 0 functions exported by other libraries); expected 11, present 11, missing 0, repeated 0, UnknownNN helper NIDs 2, unexplained 0
exit 0

check_conventions on the same head:

$ python3 tools/check_conventions.py --base upstream/main
All conventions checks passed.
exit 0

pr_overlap on the same head, against main at 50c39f09b500b17f10b18bb6ee6efe46aa525e47. The run is complete; only its final progress lines are kept:

$ python3 tools/pr_overlap.py --base main --repo boykopovar/AnyPS5 --branch feat/libSceTtsEngine-skeleton-stubs
pr_overlap: 1535 open pull requests against main
pr_overlap: fetched 1535/1535 pull request heads
pr_overlap: probed 1534/1534 pull requests, 0 share files or exports with the branch
No overlap with open pull requests.

No behaviour to test: every export throws. Windows not built. Not run on a console.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Assisted With AI: Yes. All tests were run locally on computer hardware (AMD Ryzen 5 5600G, 32 GB RAM, NVIDIA GeForce RTX 3060, CachyOS Linux 7.3, GCC 16.2), not on an actual console.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Progress report (9f748f4 → 2faeb77)

📉 System libraries: 27.25% (-0.01%, +11 declared functions)

🆕 11 declared as stubs
Library Name
libSceTtsEngine sceTtsEngineClear
libSceTtsEngine sceTtsEngineGetAudio
libSceTtsEngine sceTtsEngineInitialize
libSceTtsEngine sceTtsEngineSetDepth
libSceTtsEngine sceTtsEngineSetPitch
libSceTtsEngine sceTtsEngineSetSpeed
libSceTtsEngine sceTtsEngineSetText
libSceTtsEngine sceTtsEngineSetVolume
libSceTtsEngine sceTtsEngineTerminate
libSceTtsEngine sceTtsEngineUnknown00
libSceTtsEngine sceTtsEngineUnknown01

Changed libraries (implemented exports)

Library Before After Change
libSceTtsEngine Not present 0/11 (0.00%) n/a

@adriadam10 adriadam10 self-assigned this Oct 30, 2026
@adriadam10
adriadam10 merged commit 0bdb9eb into boykopovar:main Oct 30, 2026
12 of 14 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the diff against the 13.60 export list in the body, the throw-only stubs, the debt entry and that the duplicate #13405 is closed; Windows check green; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants