fix(libs): TLOU throwing stubs for VideoOut VrrPeg and VrrStatus #518

Merged
Pouare514 merged 3 commits from upstream-pr/518 into main 2026-10-07 15:53:38 +00:00
Pouare514 commented 2026-10-04 14:35:06 +00:00 (Migrated from github.com)

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


What

TLOU Part I imports VRR-related VideoOut entry points with unknown signatures. Adds throwing stubs for \sceVideoOutVrrPeg\ (two NIDs, four opaque 64-bit args), \sceVideoOutVrrStatusUnknown00\ (no args) and \sceVideoOutVrrStatusUnknown01, following the file's try/catch ProcessShutdown pattern. Unknown NIDs recorded in TechnicalDebt. Split out of the former combined TLOU runtime PR (#302, now Net only).

Tested

  • Windows Release Ninja: \libs\ target builds clean on this branch.

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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4735127939 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T14:35:06Z. --- ### What TLOU Part I imports VRR-related VideoOut entry points with unknown signatures. Adds throwing stubs for \sceVideoOutVrrPeg\ (two NIDs, four opaque 64-bit args), \sceVideoOutVrrStatusUnknown00\ (no args) and \sceVideoOutVrrStatusUnknown01\, following the file's try/catch ProcessShutdown pattern. Unknown NIDs recorded in TechnicalDebt. Split out of the former combined TLOU runtime PR (#302, now Net only). ### Tested - Windows Release Ninja: \libs\ target builds clean on this branch. ### 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 (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt - [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 - [ ] Depends on: none - [x] AI-assisted: yes
Pouare514 commented 2026-10-04 16:07:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Pouare514 on 2026-10-04T16:07:28Z.


Note: public NID database identifies T4ucGB8CsnM as sceVideoOutVrrUnpegFromFixedRate and 5tRaBjtdTzY as sceVideoOutVrrPegToFixedRate (verified by recomputation). Happy to rename in a follow-up after merge to keep this PR small.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5981920202 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5981920202). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T16:07:28Z. --- Note: public NID database identifies T4ucGB8CsnM as sceVideoOutVrrUnpegFromFixedRate and 5tRaBjtdTzY as sceVideoOutVrrPegToFixedRate (verified by recomputation). Happy to rename in a follow-up after merge to keep this PR small.
oneandonlydean commented 2026-10-04 21:19:08 +00:00 (Migrated from github.com)

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


Thanks for checking the names. Since they're known now, I'd rather they go in correctly here than land as unknown and be renamed later, because this PR adds TechnicalDebt lines that would be wrong from the start:

  1. T4ucGB8CsnM recomputes from sceVideoOutVrrUnpegFromFixedRate and 5tRaBjtdTzY from sceVideoOutVrrPegToFixedRate. Could you make them two functions under those names (still throwing) and drop their two "unknown name" TechnicalDebt lines?
  2. kP2L8t3j-aM and LibwuIonIBw aren't in the NID database, and I couldn't find a VRR name that recomputes to either, so I'd not call them VrrStatus. Main names unknown NIDs <library>Unknown00 (for example sceAppContentUnknown00), so sceVideoOutUnknown00/01 with the "unknown name, signature" wording you already use for LibwuIonIBw would fit. The "takes four opaque 64-bit arguments" part isn't verified either, so I'd leave it out.

Also for the record: #407 exports the same two NIDs from libSceWebBrowserDialog as sceWebBrowserDialogUnknown00/01. They belong to VideoOut, so that side should drop them; I'll mention it there.

This PR and #516 both insert after the sceVideoOutOpen line in TechnicalDebt, so whichever lands second needs a small rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5984493262 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5984493262). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T21:19:08Z. --- Thanks for checking the names. Since they're known now, I'd rather they go in correctly here than land as unknown and be renamed later, because this PR adds TechnicalDebt lines that would be wrong from the start: 1. T4ucGB8CsnM recomputes from `sceVideoOutVrrUnpegFromFixedRate` and 5tRaBjtdTzY from `sceVideoOutVrrPegToFixedRate`. Could you make them two functions under those names (still throwing) and drop their two "unknown name" TechnicalDebt lines? 2. kP2L8t3j-aM and LibwuIonIBw aren't in the NID database, and I couldn't find a VRR name that recomputes to either, so I'd not call them `VrrStatus`. Main names unknown NIDs `<library>Unknown00` (for example `sceAppContentUnknown00`), so `sceVideoOutUnknown00`/`01` with the "unknown name, signature" wording you already use for LibwuIonIBw would fit. The "takes four opaque 64-bit arguments" part isn't verified either, so I'd leave it out. Also for the record: #407 exports the same two NIDs from libSceWebBrowserDialog as `sceWebBrowserDialogUnknown00`/`01`. They belong to VideoOut, so that side should drop them; I'll mention it there. This PR and #516 both insert after the `sceVideoOutOpen` line in TechnicalDebt, so whichever lands second needs a small rebase.
Pouare514 commented 2026-10-04 23:13:04 +00:00 (Migrated from github.com)

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


Done: T4ucGB8CsnM/5tRaBjtdTzY are now two throwing functions under their real names (sceVideoOutVrrUnpegFromFixedRate/sceVideoOutVrrPegToFixedRate) with their unknown-name TechnicalDebt lines dropped; kP2L8t3j-aM/LibwuIonIBw became sceVideoOutUnknown00/01 with unknown name, signature wording and no argument claims. Also dropped the stray AudioIn hunk from this branch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985477928 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5985477928). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T23:13:04Z. --- Done: T4ucGB8CsnM/5tRaBjtdTzY are now two throwing functions under their real names (sceVideoOutVrrUnpegFromFixedRate/sceVideoOutVrrPegToFixedRate) with their unknown-name TechnicalDebt lines dropped; kP2L8t3j-aM/LibwuIonIBw became sceVideoOutUnknown00/01 with unknown name, signature wording and no argument claims. Also dropped the stray AudioIn hunk from this branch.
Pouare514 commented 2026-10-04 23:14:33 +00:00 (Migrated from github.com)

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


Done, plus one fix on top: the APS5_EXPORT aliases for the two real names had to go entirely. Since both names recompute to their NIDs, the alias (NID_nid_no_patch_cut) and the plain function export resolve to the same patched name and nid_patcher fails with a duplicate export (verified locally). They are now plain throwing exports like the rest of the file; the patcher recomputes their NIDs. The two Unknown00/01 keep the APS5_EXPORT form since their names don't recompute.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985488930 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5985488930). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-04T23:14:33Z. --- Done, plus one fix on top: the APS5_EXPORT aliases for the two real names had to go entirely. Since both names recompute to their NIDs, the alias (NID_nid_no_patch_cut) and the plain function export resolve to the same patched name and nid_patcher fails with a duplicate export (verified locally). They are now plain throwing exports like the rest of the file; the patcher recomputes their NIDs. The two Unknown00/01 keep the APS5_EXPORT form since their names don't recompute.
oneandonlydean commented 2026-10-04 23:43:45 +00:00 (Migrated from github.com)

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


Thanks, and good catch on the duplicate export: with the plain names the patcher recomputes T4ucGB8CsnM and 5tRaBjtdTzY itself, and the two unknown NIDs are sceVideoOutUnknown00/01 with the "unknown name, signature" wording. All four still throw. Ready to merge from my side.

#407 (and #545, which carries it) still exports T4ucGB8CsnM and 5tRaBjtdTzY from libSceWebBrowserDialog, so those two stubs need to come out there before either lands after this one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985700845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5985700845). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T23:43:45Z. --- Thanks, and good catch on the duplicate export: with the plain names the patcher recomputes T4ucGB8CsnM and 5tRaBjtdTzY itself, and the two unknown NIDs are `sceVideoOutUnknown00`/`01` with the "unknown name, signature" wording. All four still throw. Ready to merge from my side. #407 (and #545, which carries it) still exports T4ucGB8CsnM and 5tRaBjtdTzY from libSceWebBrowserDialog, so those two stubs need to come out there before either lands after this one.
Pouare514 commented 2026-10-05 00:33:02 +00:00 (Migrated from github.com)

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


Follow-up on the #407/#545 note: verified that feat/deathloop-loading no longer contains T4ucGB8CsnM/5tRaBjtdTzY or any Vrr names in libSceWebBrowserDialog — VideoOut is now the only owner of those two NIDs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5986098646 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5986098646). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-05T00:33:02Z. --- Follow-up on the #407/#545 note: verified that feat/deathloop-loading no longer contains T4ucGB8CsnM/5tRaBjtdTzY or any Vrr names in libSceWebBrowserDialog — VideoOut is now the only owner of those two NIDs.
oneandonlydean commented 2026-10-05 01:18:08 +00:00 (Migrated from github.com)

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


Thanks for checking #407 and #545. I confirmed it too: neither exports T4ucGB8CsnM or 5tRaBjtdTzY any more, so VideoOut is the only owner.

Since #579 landed, TechnicalDebt.md conflicts with main: main replaced the AMPR WaitOnAddress / WaitOnCounter line (which sits next to your two VideoOut lines) with the WriteAddressFromCounterPairOnCompletion and AMPR markers lines. Keeping main's lines and adding your two kP2L8t3j-aM / LibwuIonIBw lines resolves it. The code hasn't changed since I last looked, so after that rebase it's ready to merge from my side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5986479434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5986479434). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T01:18:08Z. --- Thanks for checking #407 and #545. I confirmed it too: neither exports T4ucGB8CsnM or 5tRaBjtdTzY any more, so VideoOut is the only owner. Since #579 landed, TechnicalDebt.md conflicts with main: main replaced the `AMPR WaitOnAddress / WaitOnCounter` line (which sits next to your two VideoOut lines) with the `WriteAddressFromCounterPairOnCompletion` and `AMPR markers` lines. Keeping main's lines and adding your two `kP2L8t3j-aM` / `LibwuIonIBw` lines resolves it. The code hasn't changed since I last looked, so after that rebase it's ready to merge from my side.
Pouare514 commented 2026-10-05 13:25:15 +00:00 (Migrated from github.com)

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


Rebased onto current main (53dc19cf). Kept #579's replacement lines (WriteAddressFromCounterPairOnCompletion + AMPR markers) and placed the two VideoOut lines (kP2L8t3j-aM / LibwuIonIBw) after them. Code untouched - diff vs main is 4 VideoOut stubs + 2 TD lines.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5995386212 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-5995386212). Originally posted by [Pouare514](https://github.com/Pouare514) on 2026-10-05T13:25:15Z. --- Rebased onto current main (53dc19cf). Kept #579's replacement lines (WriteAddressFromCounterPairOnCompletion + AMPR markers) and placed the two VideoOut lines (kP2L8t3j-aM / LibwuIonIBw) after them. Code untouched - diff vs main is 4 VideoOut stubs + 2 TD lines.
oneandonlydean commented 2026-10-06 05:34:12 +00:00 (Migrated from github.com)

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


Thanks. The rebase keeps #579's lines, and the stray sceAudioIn hunk is gone, so the diff is just the VideoOut stubs and their two TechnicalDebt lines.

Main has moved again in the same spot: the sceFontCreateWritingLine, sceFontWritingLineWritesOrder and sceSaveDataTransferringMountPs4, sceSaveDataDirNameSearchPs4 lines were added right where your kP2L8t3j-aM / LibwuIonIBw lines go. Keeping both and adding yours after them resolves it. Nothing else conflicts.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6010064579 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-6010064579). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T05:34:12Z. --- Thanks. The rebase keeps #579's lines, and the stray `sceAudioIn` hunk is gone, so the diff is just the VideoOut stubs and their two TechnicalDebt lines. Main has moved again in the same spot: the `sceFontCreateWritingLine, sceFontWritingLineWritesOrder` and `sceSaveDataTransferringMountPs4, sceSaveDataDirNameSearchPs4` lines were added right where your `kP2L8t3j-aM` / `LibwuIonIBw` lines go. Keeping both and adding yours after them resolves it. Nothing else conflicts.
adriadam10 commented 2026-10-07 15:44:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T15:44:40Z.


Rebased onto current main: TechnicalDebt only conflicted by adjacency, kept main's lines and put the two VideoOut lines after sceUserServiceGetUserColor. Checked that T4ucGB8CsnM/5tRaBjtdTzY recompute from the two Vrr names and that none of the four NIDs is exported elsewhere on main; build, libs (nid_patcher) and ctest (397/397) green. Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6041407205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-6041407205). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-07T15:44:40Z. --- Rebased onto current main: TechnicalDebt only conflicted by adjacency, kept main's lines and put the two VideoOut lines after `sceUserServiceGetUserColor`. Checked that T4ucGB8CsnM/5tRaBjtdTzY recompute from the two Vrr names and that none of the four NIDs is exported elsewhere on main; build, `libs` (nid_patcher) and ctest (397/397) green. Merging once CI is green.
github-actions[bot] commented 2026-10-07 15:45:11 +00:00 (Migrated from github.com)

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


Progress report (4e74283 → 9c52059)

📉 System libraries: 86.01% (-0.12%, +4 declared functions)

🆕 4 declared as stubs
Library Name
libSceVideoOut sceVideoOutUnknown00
libSceVideoOut sceVideoOutUnknown01
libSceVideoOut sceVideoOutVrrPegToFixedRate
libSceVideoOut sceVideoOutVrrUnpegFromFixedRate
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6041416618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-6041416618). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-07T15:45:11Z. --- <!-- progress-report --> ### Progress report (4e74283 → 9c52059) 📉 **System libraries**: 86.01% (-0.12%, +4 declared functions) <details> <summary>🆕 4 declared as stubs</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutUnknown00` | | libSceVideoOut | `sceVideoOutUnknown01` | | libSceVideoOut | `sceVideoOutVrrPegToFixedRate` | | libSceVideoOut | `sceVideoOutVrrUnpegFromFixedRate` | </details>
github-actions[bot] commented 2026-10-07 15:53:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T15:53:49Z.


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
#844 docs/dev/TechnicalDebt.md L69
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6041577019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/518#issuecomment-6041577019). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-07T15:53:49Z. --- <!-- 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 | |---|---|---|---| | #844 | `docs/dev/TechnicalDebt.md` [L69](https://github.com/boykopovar/AnyPS5/blob/4bf75d835e6d84115bda9ea4088de426ef9b32e3/docs/dev/TechnicalDebt.md#L69) | | |
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!518
No description provided.