feat(libSceGameLiveStreaming): report no broadcast in sceGameLiveStreamingGetCurrentStatus2 #1545

Closed
arvindfroi wants to merge 1 commit from upstream-pr/1545 into main
arvindfroi commented 2026-10-08 11:49:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by arvindfroi on 2026-10-08T11:49:00Z.


What

sceGameLiveStreamingGetCurrentStatus2 (PPSA14632) was declared without parameters and threw. It now takes the 72-byte status that both KytyPS5 and shadPS4 declare (user_id, is_on_air, four counters/resolution, 48 reserved bytes; a static_assert pins the size). Nothing is broadcast, so, as in KytyPS5, the status is zeroed with the invalid user id -1. A null status returns 0x80A00002, an error code only KytyPS5 gives; TechnicalDebt says so. The NID lK8dLBNp9OE matches KytyPS5's table.

The library gets a CMakeLists.txt in the layout of libScePsml_debug so that guest_game_live_streaming can link against it. The test checks that exactly 72 bytes are written, the user id, and the null case. sceGameLiveStreamingGetProgramInfo is left as it is.

Tested

tools/check_conventions.py --base origin/main passes. tools/progress.py: libSceGameLiveStreaming 3/4. Export.cpp and GuestGameLiveStreaming.cpp built natively on macOS (Apple clang, arm64) and the test passes. No x86-64 toolchain on this machine, so the Linux and Windows builds and ctest are left to CI. No title tested.

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 (Claude Code, Claude Opus 5.5)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4786302469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1545). Originally posted by [arvindfroi](https://github.com/arvindfroi) on 2026-10-08T11:49:00Z. --- ### What `sceGameLiveStreamingGetCurrentStatus2` (PPSA14632) was declared without parameters and threw. It now takes the 72-byte status that both [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/main/src/libs/libNet.cpp) and [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/0fe263a4760dfbfa973366890061749b4af0de97/src/core/libraries/game_live_streaming/gamelivestreaming.h) declare (`user_id`, `is_on_air`, four counters/resolution, 48 reserved bytes; a `static_assert` pins the size). Nothing is broadcast, so, as in KytyPS5, the status is zeroed with the invalid user id -1. A null status returns 0x80A00002, an error code only KytyPS5 gives; TechnicalDebt says so. The NID `lK8dLBNp9OE` matches KytyPS5's table. The library gets a `CMakeLists.txt` in the layout of `libScePsml_debug` so that `guest_game_live_streaming` can link against it. The test checks that exactly 72 bytes are written, the user id, and the null case. `sceGameLiveStreamingGetProgramInfo` is left as it is. ### Tested `tools/check_conventions.py --base origin/main` passes. `tools/progress.py`: libSceGameLiveStreaming 3/4. `Export.cpp` and `GuestGameLiveStreaming.cpp` built natively on macOS (Apple clang, arm64) and the test passes. No x86-64 toolchain on this machine, so the Linux and Windows builds and ctest are left to CI. No title tested. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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 - [x] Depends on: none - [x] AI-assisted: yes (Claude Code, Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-08 20:16:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T20:16:35Z.


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
#1536 docs/dev/TechnicalDebt.md L95
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068256851 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1545#issuecomment-6068256851). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T20:16:35Z. --- <!-- 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 | |---|---|---|---| | #1536 | `docs/dev/TechnicalDebt.md` [L95](https://github.com/boykopovar/AnyPS5/blob/ae91d9780b3fe8dc71481841904fced01923c24b/docs/dev/TechnicalDebt.md#L95) | | |
oneandonlydean commented 2026-10-09 09:29:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:29:29Z.


Closing: no title is shown stopping at sceGameLiveStreamingGetCurrentStatus2 on main, and the change was only built on macOS. Reopen when a title stops at it on main, with the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6078227135 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1545#issuecomment-6078227135). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T09:29:29Z. --- Closing: no title is shown stopping at `sceGameLiveStreamingGetCurrentStatus2` on main, and the change was only built on macOS. Reopen when a title stops at it on main, with the log line.

Pull request closed

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!1545
No description provided.