feat(videoout): accept a zeroed open param #128

Merged
oneandonlydean merged 1 commit from upstream-pr/128 into main 2026-09-30 15:54:15 +00:00
oneandonlydean commented 2026-09-29 00:33:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-09-29T00:33:04Z.


What

sceVideoOutOpen threw for any non-null param. PS5 titles pass a 16-byte open param whose first word is its size (Astro Bot does), so they could not open a port.

A param whose size word is 16 and whose other three words are zero asks for nothing beyond what a null param does, so it is now accepted. Any other size throws, and so does any non-zero option word. The meaning of those words is not known yet.

Tested

  • Linux (CachyOS, GCC). video_out_flip_tests controls (not part of ctest) now opens the port with a zeroed param and checks that a wrong size and a non-zero option throw. On main the first open throws.
  • ctest: 57/57 pass.

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
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4670962333 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/128). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-09-29T00:33:04Z. --- ### What `sceVideoOutOpen` threw for any non-null `param`. PS5 titles pass a 16-byte open param whose first word is its size (Astro Bot does), so they could not open a port. A param whose size word is 16 and whose other three words are zero asks for nothing beyond what a null param does, so it is now accepted. Any other size throws, and so does any non-zero option word. The meaning of those words is not known yet. ### Tested - Linux (CachyOS, GCC). `video_out_flip_tests controls` (not part of ctest) now opens the port with a zeroed param and checks that a wrong size and a non-zero option throw. On main the first open throws. - `ctest`: 57/57 pass. ### 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 - [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 - [x] AI-assisted: yes
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!128
No description provided.