feat(prx): unknown loader tripwires for TLOU #338

Merged
Pouare514 merged 3 commits from upstream-pr/338 into main 2026-10-05 01:22:19 +00:00
Pouare514 commented 2026-10-02 09:39:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-02T09:39:16Z.


What

Raw-NID exports for 14 loader unknowns hit while booting TLOU Part I (Net, libc, SystemService, Http, Http2, Voice, Trophy2, libkernel, SessionSignaling), following the Agc unknown precedent. Unknown names/signatures recorded in TechnicalDebt. Anything actually called throws with its name instead of failing the load with an unnamed import.

Tested

Windows 11, MinGW GCC 15.2.0. Verified all 14 NIDs present in the built .prx\ files. Full \ctest -E agc_driver_graphics|guest_rendering_wait: 93/93.

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:4714958535 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-02T09:39:16Z. --- ### What Raw-NID exports for 14 loader unknowns hit while booting TLOU Part I (Net, libc, SystemService, Http, Http2, Voice, Trophy2, libkernel, SessionSignaling), following the Agc unknown precedent. Unknown names/signatures recorded in TechnicalDebt. Anything actually called throws with its name instead of failing the load with an unnamed import. ### Tested Windows 11, MinGW GCC 15.2.0. Verified all 14 NIDs present in the built \.prx\ files. Full \ctest -E agc_driver_graphics|guest_rendering_wait\: 93/93. ### 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-02 11:37:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-02T11:37:51Z.


Progress report (9651ec9 → 20cbc8e)

📉 System libraries: 78.89% (-0.25%, +10 declared functions)

🆕 10 declared as stubs
Library Name
libSceHttp sceHttpParseResponseHeader
libSceHttp2 sceHttp2GetMemoryPoolStats
libSceNet sceNetGetMemoryPoolStats
libSceNpSessionSignaling sceNpSessionSignalingGetConnectionStatistics
libSceNpSessionSignaling sceNpSessionSignalingGetMemoryInfo
libSceNpTrophy2 sceNpTrophy2UnregisterUnlockCallback
libSceSystemService sceSystemServiceDisableMediaPlay
libSceSystemService sceSystemServiceReenableMediaPlay
libSceVoice sceVoiceSetMuteFlag
libc snwprintf_s
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5951534366 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5951534366). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-02T11:37:51Z. --- <!-- progress-report --> ### Progress report (9651ec9 → 20cbc8e) 📉 **System libraries**: 78.89% (-0.25%, +10 declared functions) <details> <summary>🆕 10 declared as stubs</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpParseResponseHeader` | | libSceHttp2 | `sceHttp2GetMemoryPoolStats` | | libSceNet | `sceNetGetMemoryPoolStats` | | libSceNpSessionSignaling | `sceNpSessionSignalingGetConnectionStatistics` | | libSceNpSessionSignaling | `sceNpSessionSignalingGetMemoryInfo` | | libSceNpTrophy2 | `sceNpTrophy2UnregisterUnlockCallback` | | libSceSystemService | `sceSystemServiceDisableMediaPlay` | | libSceSystemService | `sceSystemServiceReenableMediaPlay` | | libSceVoice | `sceVoiceSetMuteFlag` | | libc | `snwprintf_s` | </details>
oneandonlydean commented 2026-10-04 05:41:49 +00:00 (Migrated from github.com)

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


Thanks for these. This needs a rebase: it conflicts with main in libSceHttp, libSceNpSessionSignaling, libkernel/Unimplemented.cpp and TechnicalDebt.md, and rWSuTWY2JN0 (libc/Export.cpp) and teiItL2boFw (libkernel/Unimplemented.cpp) are exported on main already, so those two can be dropped. Also, 0hlfW1O4Aa4 is a libc export here but #407 adds the same NID to libSceAmpr. Do you know which library the title imports it from?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5977014632 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5977014632). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T05:41:49Z. --- Thanks for these. This needs a rebase: it conflicts with main in libSceHttp, libSceNpSessionSignaling, `libkernel/Unimplemented.cpp` and TechnicalDebt.md, and rWSuTWY2JN0 (`libc/Export.cpp`) and teiItL2boFw (`libkernel/Unimplemented.cpp`) are exported on main already, so those two can be dropped. Also, 0hlfW1O4Aa4 is a libc export here but #407 adds the same NID to libSceAmpr. Do you know which library the title imports it from?
Pouare514 commented 2026-10-04 14:22:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T14:22:50Z.


Done, rebased: dropped rWSuTWY2JN0 and teiItL2boFw (on main), hPTXo3bICzI renumbered to sceHttpUnknown02, rMyh97BU5pY to sceNetUnknown01. Two findings while rebasing: GlelR9EEeck computes to the same NID as cbrtf (already implemented), so dropped as well. For 0hlfW1O4Aa4: Deathloop imports it from libSceAmpr (IMPORT_LIB index 48, verified from the ELF dynamic section), and TLOU only references that one NID out of Ampr's whole surface, so I removed it from libc here and kept it in #407's Ampr. libs rebuilt clean.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5981000087 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5981000087). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T14:22:50Z. --- Done, rebased: dropped rWSuTWY2JN0 and teiItL2boFw (on main), hPTXo3bICzI renumbered to sceHttpUnknown02, rMyh97BU5pY to sceNetUnknown01. Two findings while rebasing: GlelR9EEeck computes to the same NID as cbrtf (already implemented), so dropped as well. For 0hlfW1O4Aa4: Deathloop imports it from libSceAmpr (IMPORT_LIB index 48, verified from the ELF dynamic section), and TLOU only references that one NID out of Ampr's whole surface, so I removed it from libc here and kept it in #407's Ampr. libs rebuilt clean.
oneandonlydean commented 2026-10-04 21:07:48 +00:00 (Migrated from github.com)

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


Thanks for the rebase, and good catch on GlelR9EEeck being cbrtf. Three things in the new head:

  • It deletes main's sceNpSessionSignalingGetConnectionStatus, the implementation with the real signature. The duplicate I mentioned on #302 was the (void) one there; this one has to stay.
  • The TechnicalDebt hunk also deletes seven lines that are on main (X+4jdIS75P0, AOWqIYsgVHs, GQTObcITIXI, BnMAMrsfVWo, the "AudioPropagation, AudioIn, NpSessionSignaling and PlayerInvitationDialog" line, sceAvPlayerStartEx and sceAvPlayerInit / sceAvPlayerInitEx), the same as on #301.
  • All ten NIDs here have known names, which I checked by recomputing each NID from the name:
NID Name
hPTXo3bICzI sceHttpParseResponseHeader
otUQuZa-mv0 sceHttp2GetMemoryPoolStats
rMyh97BU5pY sceNetGetMemoryPoolStats
lbXTXRG5nyM sceNpSessionSignalingGetMemoryInfo
+Q++Q49a9z8 sceNpSessionSignalingGetConnectionStatistics
wVqxM58sIKs sceNpTrophy2UnregisterUnlockCallback
64nkF7LGk8w sceSystemServiceDisableMediaPlay
uInYhy7xa+U sceSystemServiceReenableMediaPlay
gwUynkEgNFY sceVoiceSetMuteFlag
jbj2wBoiCyg snwprintf_s

Exporting them under these names also avoids the clash with #407, which uses sceHttpUnknown02 and sceNetUnknown01 for different NIDs. Their TechnicalDebt lines would then say "unknown signature". The red Windows job is the guest_audio_in_no_device flake that #532 fixed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5984394388 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5984394388). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T21:07:48Z. --- Thanks for the rebase, and good catch on GlelR9EEeck being cbrtf. Three things in the new head: - It deletes main's `sceNpSessionSignalingGetConnectionStatus`, the implementation with the real signature. The duplicate I mentioned on #302 was the `(void)` one there; this one has to stay. - The TechnicalDebt hunk also deletes seven lines that are on main (X+4jdIS75P0, AOWqIYsgVHs, GQTObcITIXI, BnMAMrsfVWo, the "AudioPropagation, AudioIn, NpSessionSignaling and PlayerInvitationDialog" line, sceAvPlayerStartEx and sceAvPlayerInit / sceAvPlayerInitEx), the same as on #301. - All ten NIDs here have known names, which I checked by recomputing each NID from the name: | NID | Name | |---|---| | hPTXo3bICzI | sceHttpParseResponseHeader | | otUQuZa-mv0 | sceHttp2GetMemoryPoolStats | | rMyh97BU5pY | sceNetGetMemoryPoolStats | | lbXTXRG5nyM | sceNpSessionSignalingGetMemoryInfo | | +Q++Q49a9z8 | sceNpSessionSignalingGetConnectionStatistics | | wVqxM58sIKs | sceNpTrophy2UnregisterUnlockCallback | | 64nkF7LGk8w | sceSystemServiceDisableMediaPlay | | uInYhy7xa+U | sceSystemServiceReenableMediaPlay | | gwUynkEgNFY | sceVoiceSetMuteFlag | | jbj2wBoiCyg | snwprintf_s | Exporting them under these names also avoids the clash with #407, which uses `sceHttpUnknown02` and `sceNetUnknown01` for different NIDs. Their TechnicalDebt lines would then say "unknown signature". The red Windows job is the guest_audio_in_no_device flake that #532 fixed.
Pouare514 commented 2026-10-04 23:16:16 +00:00 (Migrated from github.com)

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


Done all three: restored main's sceNpSessionSignalingGetConnectionStatus implementation and the seven TechnicalDebt lines; exported all ten NIDs under their recomputed real names as plain functions (no APS5_EXPORT, so nid_patcher resolves each to its NID with no duplicates — verified with a clean local libs build), with unknown signature TechnicalDebt lines. This also clears the sceHttpUnknown02/sceNetUnknown01 clash with #407. Also dropped the stray AudioIn hunk from this branch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985501831 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5985501831). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T23:16:16Z. --- Done all three: restored main's sceNpSessionSignalingGetConnectionStatus implementation and the seven TechnicalDebt lines; exported all ten NIDs under their recomputed real names as plain functions (no APS5_EXPORT, so nid_patcher resolves each to its NID with no duplicates — verified with a clean local libs build), with unknown signature TechnicalDebt lines. This also clears the sceHttpUnknown02/sceNetUnknown01 clash with #407. Also dropped the stray AudioIn hunk from this branch.
oneandonlydean commented 2026-10-04 23:43:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T23:43:41Z.


Thanks, that covers all three: main's sceNpSessionSignalingGetConnectionStatus and the seven TechnicalDebt lines are back, and the ten NIDs are exported under their real names with "unknown signature" lines. No other open PR exports any of these names or NIDs now.

It needs one more rebase: #555 (now on main) added sceHttpCreateRequest2 and friends at the end of libSceHttp/Export.cpp, which conflicts with sceHttpParseResponseHeader, and TechnicalDebt.md conflicts as well. Keeping both sides works; with that, libs builds here and the full ctest passes.

While rebasing, could you leave main's sceNpSessionSignalingGetConnectionStatus body as it is? The hunk there now only re-indents it, and the same goes for the deleted blank line above sceHttpUnknown00. After the rebase it's ready to merge from my side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985700273 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5985700273). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T23:43:41Z. --- Thanks, that covers all three: main's `sceNpSessionSignalingGetConnectionStatus` and the seven TechnicalDebt lines are back, and the ten NIDs are exported under their real names with "unknown signature" lines. No other open PR exports any of these names or NIDs now. It needs one more rebase: #555 (now on main) added `sceHttpCreateRequest2` and friends at the end of `libSceHttp/Export.cpp`, which conflicts with `sceHttpParseResponseHeader`, and TechnicalDebt.md conflicts as well. Keeping both sides works; with that, `libs` builds here and the full ctest passes. While rebasing, could you leave main's `sceNpSessionSignalingGetConnectionStatus` body as it is? The hunk there now only re-indents it, and the same goes for the deleted blank line above `sceHttpUnknown00`. After the rebase it's ready to merge from my side.
Pouare514 commented 2026-10-05 00:20:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-05T00:20:08Z.


Rebased onto current main, keeping both sides in libSceHttp/Export.cpp (#555's CreateRequest2 and friends plus sceHttpParseResponseHeader) and TechnicalDebt.md. Main's sceNpSessionSignalingGetConnectionStatus body is now byte-identical to main, and the blank line above sceHttpUnknown00 is restored — the Http and SessionSignaling diffs are purely additive now. libs builds and full ctest (221 tests) passes locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985989140 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5985989140). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-05T00:20:08Z. --- Rebased onto current main, keeping both sides in libSceHttp/Export.cpp (#555's CreateRequest2 and friends plus sceHttpParseResponseHeader) and TechnicalDebt.md. Main's sceNpSessionSignalingGetConnectionStatus body is now byte-identical to main, and the blank line above sceHttpUnknown00 is restored — the Http and SessionSignaling diffs are purely additive now. libs builds and full ctest (221 tests) passes locally.
github-actions[bot] commented 2026-10-05 00:21:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T00:21:25Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#582 docs/dev/TechnicalDebt.md L59
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5986000478 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5986000478). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T00:21:25Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #582 | `docs/dev/TechnicalDebt.md` [L59](https://github.com/boykopovar/AnyPS5/blob/8387b4da51a7e85549a64a0296a3a409b711c562/docs/dev/TechnicalDebt.md#L59) | | |
oneandonlydean commented 2026-10-05 01:18:02 +00:00 (Migrated from github.com)

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


Thanks. After the rebase the diff only adds code: main's sceNpSessionSignalingGetConnectionStatus body and the blank line in libSceHttp are untouched, #555's functions are kept, and the ten names still recompute to their NIDs with "unknown signature" lines. No other open PR or main exports any of them. CI is green on the new head.

Ready to merge from my side. When it lands, #407, #545 and #550 each need a one-line TechnicalDebt.md rebase, because they all append to the end of "Unknown function info" (#545 also appends to the end of libc/src/RuntimeSupport.cpp).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5986478527 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/338#issuecomment-5986478527). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T01:18:02Z. --- Thanks. After the rebase the diff only adds code: main's `sceNpSessionSignalingGetConnectionStatus` body and the blank line in libSceHttp are untouched, #555's functions are kept, and the ten names still recompute to their NIDs with "unknown signature" lines. No other open PR or main exports any of them. CI is green on the new head. Ready to merge from my side. When it lands, #407, #545 and #550 each need a one-line TechnicalDebt.md rebase, because they all append to the end of "Unknown function info" (#545 also appends to the end of `libc/src/RuntimeSupport.cpp`).
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!338
No description provided.