feat(prx): stub TextToSpeech2, Vdecsw and Coredump unknown exports #301

Merged
Pouare514 merged 1 commit from upstream-pr/301 into main 2026-10-07 13:51:53 +00:00
Pouare514 commented 2026-10-01 23:37:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-01T23:37:15Z.


What

New stub modules needed at load time by TLOU Part I: \libSceTextToSpeech2\ (1 export), \libSceVdecsw\ (2 named + 11 raw-NID exports), plus 4 Coredump unknown exports in libkernel. Unknown names/signatures follow the Agc unknown precedent (\APS5_EXPORT\ raw NIDs) and are recorded in TechnicalDebt; anything called throws with its name instead of failing the whole load with an unnamed import error.

Tested

Windows 11, MinGW GCC 15.2.0. Verified every NID present in the built .prx\ files. Full \ctest -E agc_driver_graphics|guest_rendering_wait: green.

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; silent stubs are listed in TechnicalDebt
  • No notes, investigation .md\ files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4710881958 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-01T23:37:15Z. --- ### What New stub modules needed at load time by TLOU Part I: \libSceTextToSpeech2\ (1 export), \libSceVdecsw\ (2 named + 11 raw-NID exports), plus 4 Coredump unknown exports in libkernel. Unknown names/signatures follow the Agc unknown precedent (\APS5_EXPORT\ raw NIDs) and are recorded in TechnicalDebt; anything called throws with its name instead of failing the whole load with an unnamed import error. ### Tested Windows 11, MinGW GCC 15.2.0. Verified every NID present in the built \.prx\ files. Full \ctest -E agc_driver_graphics|guest_rendering_wait\: green. ### 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 - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt - [x] No notes, investigation \.md\ files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-01 23:37:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-01T23:37:43Z.


Progress report (e79c971 → 4fcfd3c)

📉 System libraries: 86.13% (-0.48%, +16 declared functions)

🆕 16 declared as stubs
Library Name
libSceTextToSpeech2 sceTextToSpeech2GetSystemStatus
libSceVdecsw sceVdecswAllocateComputeQueue
libSceVdecsw sceVdecswCreateDecoder
libSceVdecsw sceVdecswDeleteDecoder
libSceVdecsw sceVdecswFinalizeDecodeSequence
libSceVdecsw sceVdecswGetAvcPictureInfo
libSceVdecsw sceVdecswQueryComputeMemoryInfo
libSceVdecsw sceVdecswQueryDecoderMemoryInfo
libSceVdecsw sceVdecswReleaseComputeQueue
libSceVdecsw sceVdecswResetDecoder
libSceVdecsw sceVdecswSetDecodeInput
libSceVdecsw sceVdecswSetDecodeOutput
libSceVdecsw sceVdecswTrySyncDecodeInput
libSceVdecsw sceVdecswTrySyncDecodeOutput
libkernel sceCoredumpAttachMemoryRegion
libkernel sceCoredumpAttachUserMemoryFile
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5942763021 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5942763021). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-01T23:37:43Z. --- <!-- progress-report --> ### Progress report (e79c971 → 4fcfd3c) 📉 **System libraries**: 86.13% (-0.48%, +16 declared functions) <details> <summary>🆕 16 declared as stubs</summary> | Library | Name | | - | - | | libSceTextToSpeech2 | `sceTextToSpeech2GetSystemStatus` | | libSceVdecsw | `sceVdecswAllocateComputeQueue` | | libSceVdecsw | `sceVdecswCreateDecoder` | | libSceVdecsw | `sceVdecswDeleteDecoder` | | libSceVdecsw | `sceVdecswFinalizeDecodeSequence` | | libSceVdecsw | `sceVdecswGetAvcPictureInfo` | | libSceVdecsw | `sceVdecswQueryComputeMemoryInfo` | | libSceVdecsw | `sceVdecswQueryDecoderMemoryInfo` | | libSceVdecsw | `sceVdecswReleaseComputeQueue` | | libSceVdecsw | `sceVdecswResetDecoder` | | libSceVdecsw | `sceVdecswSetDecodeInput` | | libSceVdecsw | `sceVdecswSetDecodeOutput` | | libSceVdecsw | `sceVdecswTrySyncDecodeInput` | | libSceVdecsw | `sceVdecswTrySyncDecodeOutput` | | libkernel | `sceCoredumpAttachMemoryRegion` | | libkernel | `sceCoredumpAttachUserMemoryFile` | </details>
oneandonlydean commented 2026-10-04 05:40:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T05:40:28Z.


Thanks for these stubs. This conflicts with main now (Coredump.cpp and TechnicalDebt.md): MEJ7tc7ThwM and Uxqkdta7wEg were added to Coredump.cpp in the meantime, so those two should be dropped and the rest rebased. Main already uses sceCoredumpUnknown00 to 05, so DoKHmUw1yiQ and +YX0z-GUSNw would become sceCoredumpUnknown06 and 07. #302 also repeats these TechnicalDebt lines, so whichever lands second will need to drop them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5977006505 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5977006505). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T05:40:28Z. --- Thanks for these stubs. This conflicts with main now (Coredump.cpp and TechnicalDebt.md): MEJ7tc7ThwM and Uxqkdta7wEg were added to Coredump.cpp in the meantime, so those two should be dropped and the rest rebased. Main already uses `sceCoredumpUnknown00` to `05`, so DoKHmUw1yiQ and +YX0z-GUSNw would become `sceCoredumpUnknown06` and `07`. #302 also repeats these TechnicalDebt lines, so whichever lands second will need to drop them.
Pouare514 commented 2026-10-04 13:49:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T13:49:47Z.


Done: rebased, dropped MEJ7tc7ThwM/Uxqkdta7wEg (on main), DoKHmUw1yiQ and +YX0z-GUSNw renumbered to sceCoredumpUnknown06/07, libs rebuilt OK. The TechnicalDebt lines that #302 repeats are kept here; #302 will drop its copies.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5980695364 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5980695364). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T13:49:47Z. --- Done: rebased, dropped MEJ7tc7ThwM/Uxqkdta7wEg (on main), DoKHmUw1yiQ and +YX0z-GUSNw renumbered to sceCoredumpUnknown06/07, libs rebuilt OK. The TechnicalDebt lines that #302 repeats are kept here; #302 will drop its copies.
oneandonlydean commented 2026-10-04 21:07:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T21:07:44Z.


Thanks for the rebase and the renumbering. Two things:

  • The TechnicalDebt hunk now also deletes seven lines that are on main: X+4jdIS75P0, AOWqIYsgVHs, GQTObcITIXI, BnMAMrsfVWo, the "AudioPropagation, AudioIn, NpSessionSignaling and PlayerInvitationDialog" line, sceAvPlayerStartEx and sceAvPlayerInit / sceAvPlayerInitEx. That probably happened while resolving the conflict. Those lines need to stay.
  • All 14 NIDs listed as unknown have known names, which I checked by recomputing each NID from the name:
NID Name
+352WTlGCQI sceTextToSpeech2GetSystemStatus
DoKHmUw1yiQ sceCoredumpAttachUserMemoryFile
+YX0z-GUSNw sceCoredumpAttachMemoryRegion
0moTubWCsTM sceVdecswQueryComputeMemoryInfo
5Y6nZqIZvBg sceVdecswFinalizeDecodeSequence
A+2M7EivuOU sceVdecswQueryDecoderMemoryInfo
aqMiF0AgUYI sceVdecswSetDecodeInput
fX-zOOefbbs sceVdecswReleaseComputeQueue
hIgrg5h4V6s sceVdecswAllocateComputeQueue
ihNT-uuEAr4 sceVdecswGetAvcPictureInfo
kMBw37oH8nI sceVdecswTrySyncDecodeOutput
l4sQYy5wPkc sceVdecswTrySyncDecodeInput
rgtMCOpyBSc sceVdecswSetDecodeOutput
veb-YBrOqo0 sceVdecswResetDecoder

Could you export them under these names (like sceVdecswCreateDecoder, without APS5_EXPORT), and change their TechnicalDebt lines from "unknown name, signature" to "unknown signature"?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5984393892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5984393892). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T21:07:44Z. --- Thanks for the rebase and the renumbering. Two things: - The TechnicalDebt hunk now also deletes seven lines that are on main: X+4jdIS75P0, AOWqIYsgVHs, GQTObcITIXI, BnMAMrsfVWo, the "AudioPropagation, AudioIn, NpSessionSignaling and PlayerInvitationDialog" line, sceAvPlayerStartEx and sceAvPlayerInit / sceAvPlayerInitEx. That probably happened while resolving the conflict. Those lines need to stay. - All 14 NIDs listed as unknown have known names, which I checked by recomputing each NID from the name: | NID | Name | |---|---| | +352WTlGCQI | sceTextToSpeech2GetSystemStatus | | DoKHmUw1yiQ | sceCoredumpAttachUserMemoryFile | | +YX0z-GUSNw | sceCoredumpAttachMemoryRegion | | 0moTubWCsTM | sceVdecswQueryComputeMemoryInfo | | 5Y6nZqIZvBg | sceVdecswFinalizeDecodeSequence | | A+2M7EivuOU | sceVdecswQueryDecoderMemoryInfo | | aqMiF0AgUYI | sceVdecswSetDecodeInput | | fX-zOOefbbs | sceVdecswReleaseComputeQueue | | hIgrg5h4V6s | sceVdecswAllocateComputeQueue | | ihNT-uuEAr4 | sceVdecswGetAvcPictureInfo | | kMBw37oH8nI | sceVdecswTrySyncDecodeOutput | | l4sQYy5wPkc | sceVdecswTrySyncDecodeInput | | rgtMCOpyBSc | sceVdecswSetDecodeOutput | | veb-YBrOqo0 | sceVdecswResetDecoder | Could you export them under these names (like `sceVdecswCreateDecoder`, without `APS5_EXPORT`), and change their TechnicalDebt lines from "unknown name, signature" to "unknown signature"?
Pouare514 commented 2026-10-04 23:18:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T23:18:02Z.


Done both: restored the seven TechnicalDebt lines from main, and exported all 14 NIDs under their recomputed real names as plain functions without APS5_EXPORT (like sceVdecswCreateDecoder), with unknown signature TechnicalDebt lines. Clean local libs build confirms nid_patcher resolves each to its NID with no duplicates. Also dropped the stray AudioIn hunk from this branch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985514673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5985514673). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T23:18:02Z. --- Done both: restored the seven TechnicalDebt lines from main, and exported all 14 NIDs under their recomputed real names as plain functions without APS5_EXPORT (like sceVdecswCreateDecoder), with unknown signature TechnicalDebt lines. Clean local libs build confirms nid_patcher resolves each to its NID with no duplicates. Also dropped the stray AudioIn hunk from this branch.
oneandonlydean commented 2026-10-05 01:18:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T01:18:01Z.


Thanks, the names are right: all 14 recompute to their NIDs (plus sceVdecswCreateDecoder/DeleteDecoder), none is exported anywhere else on main or in another open PR, and the stray AudioIn hunk is gone.

The rebase onto #574's merge has the same problem as last time, though, with different lines: TechnicalDebt.md now deletes six lines that are on main:

  • the libSceErrorDialog silent-stub line (#558)
  • the libSceAudioPropagation no-propagation line
  • sceRtcParseDateTime (#516)
  • AMPR markers
  • the s_setreg_b32 line under Functional
  • the sceAjmDecMp3ParseFrame parse_ofl line (#578)

It also changes "AudioIn, NpSessionSignaling and PlayerInvitationDialog exports" back to the older "AudioPropagation, AudioIn, ..." wording. It looks like an older copy of the file was used to resolve the conflict. Since #579 landed, the file also conflicts with main again (main replaced the AMPR WaitOnAddress / WaitOnCounter line).

Could you rebase once more and take main's TechnicalDebt.md as it is, then add only your 14 "unknown signature" lines? git diff origin/main -- docs/dev/TechnicalDebt.md should then show only added lines. After that it's ready to merge from my side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5986478355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5986478355). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T01:18:01Z. --- Thanks, the names are right: all 14 recompute to their NIDs (plus `sceVdecswCreateDecoder`/`DeleteDecoder`), none is exported anywhere else on main or in another open PR, and the stray AudioIn hunk is gone. The rebase onto #574's merge has the same problem as last time, though, with different lines: TechnicalDebt.md now deletes six lines that are on main: - the `libSceErrorDialog` silent-stub line (#558) - the `libSceAudioPropagation` no-propagation line - `sceRtcParseDateTime` (#516) - `AMPR markers` - the `s_setreg_b32` line under Functional - the `sceAjmDecMp3ParseFrame` `parse_ofl` line (#578) It also changes "AudioIn, NpSessionSignaling and PlayerInvitationDialog exports" back to the older "AudioPropagation, AudioIn, ..." wording. It looks like an older copy of the file was used to resolve the conflict. Since #579 landed, the file also conflicts with main again (main replaced the `AMPR WaitOnAddress / WaitOnCounter` line). Could you rebase once more and take main's TechnicalDebt.md as it is, then add only your 14 "unknown signature" lines? `git diff origin/main -- docs/dev/TechnicalDebt.md` should then show only added lines. After that it's ready to merge from my side.
Pouare514 commented 2026-10-05 13:26:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-05T13:26:19Z.


Rebased onto origin/main (53dc19cf). For docs/dev/TechnicalDebt.md I took main's file as-is and added only the 14 unknown-signature lines at the end of Unknown function info, so git diff origin/main -- docs/dev/TechnicalDebt.md shows additions only, zero deletions. Code conflicts auto-merged cleanly (new TextToSpeech2/Vdecsw files plus 2 Coredump stubs, all plain exports without APS5_EXPORT); no other manual merges needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5995405247 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-5995405247). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-05T13:26:19Z. --- Rebased onto origin/main (53dc19cf). For docs/dev/TechnicalDebt.md I took main's file as-is and added only the 14 unknown-signature lines at the end of Unknown function info, so git diff origin/main -- docs/dev/TechnicalDebt.md shows additions only, zero deletions. Code conflicts auto-merged cleanly (new TextToSpeech2/Vdecsw files plus 2 Coredump stubs, all plain exports without APS5_EXPORT); no other manual merges needed.
oneandonlydean commented 2026-10-06 05:34:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T05:34:11Z.


Thanks, docs/dev/TechnicalDebt.md now only adds your 14 lines, with no deletions, and the rest of the branch is unchanged. The 14 names were already checked last time.

It conflicts with main again at the same spot, though. Since your rebase, main has added four lines at the end of "Unknown function info": _sceUlobjmgrRegisterObject, sceShareGetCurrentStatus, the sceAgcDcbSet*PredicationEnableGetSize line and Resource registration. Keeping those four and adding your lines after them resolves it. Nothing else conflicts.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6010064328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-6010064328). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T05:34:11Z. --- Thanks, `docs/dev/TechnicalDebt.md` now only adds your 14 lines, with no deletions, and the rest of the branch is unchanged. The 14 names were already checked last time. It conflicts with main again at the same spot, though. Since your rebase, main has added four lines at the end of "Unknown function info": `_sceUlobjmgrRegisterObject`, `sceShareGetCurrentStatus`, the `sceAgcDcbSet*PredicationEnableGetSize` line and `Resource registration`. Keeping those four and adding your lines after them resolves it. Nothing else conflicts.
adriadam10 commented 2026-10-07 13:43:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T13:43:41Z.


Rebased onto current main myself: squashed into one commit (authorship kept) since the first commit no longer applied, and moved the 14 TechnicalDebt lines to after sceVoiceSetMuteFlag instead of the end of "Unknown function info", where every PR appends and it kept conflicting. Net diff unchanged (+110). Build and full ctest green on the rebase; merging once CI passes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6039260666 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/301#issuecomment-6039260666). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-07T13:43:41Z. --- Rebased onto current main myself: squashed into one commit (authorship kept) since the first commit no longer applied, and moved the 14 TechnicalDebt lines to after `sceVoiceSetMuteFlag` instead of the end of "Unknown function info", where every PR appends and it kept conflicting. Net diff unchanged (+110). Build and full ctest green on the rebase; merging once CI passes.
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!301
No description provided.