feat(libSceGameLiveStreaming): accept GetProgramInfo with no live stream #5352

Closed
notaxeltv wants to merge 1 commit from upstream-pr/5352 into main
notaxeltv commented 2026-10-13 17:42:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-13T17:42:44Z.


What

On current main sceGameLiveStreamingGetProgramInfo throws:

int APS5_VABI sceGameLiveStreamingGetProgramInfo() {
    NotImplemented_nid_no_patch(__func__);
    return 0;
}

It now returns 0 and stays parameterless, as in shadPS4 gamelivestreaming.cpp. There is no live-stream program to describe. sceGameLiveStreamingGetCurrentStatus2 already reports that no stream is on air. Listed under Silent stubs in docs/dev/debt/libSceGameLiveStreaming.md.

PPSA14632 imports it.

Tested

guest_game_live_streaming_program_info on this branch expects 0 from sceGameLiveStreamingGetProgramInfo. On current main that test aborts (the call throws). With this change it passes.

python tools/check_conventions.py --base main passed. tools/progress.py: libSceGameLiveStreaming 3/4 to 4/4.

No MinGW toolchain on this machine, so full ctest was not run. Not tested with a title; no title on main is shown to call this.

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 their library's technical debt file
  • 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
  • Unblocks: none (PPSA14632 imports it)
  • GPUs tested: n/a
  • AI-assisted: yes

Made with Cursor

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4847149679 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5352). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-13T17:42:44Z. --- ### What On current `main` `sceGameLiveStreamingGetProgramInfo` throws: ```cpp int APS5_VABI sceGameLiveStreamingGetProgramInfo() { NotImplemented_nid_no_patch(__func__); return 0; } ``` It now returns 0 and stays parameterless, as in [shadPS4 `gamelivestreaming.cpp`](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/game_live_streaming/gamelivestreaming.cpp). There is no live-stream program to describe. `sceGameLiveStreamingGetCurrentStatus2` already reports that no stream is on air. Listed under Silent stubs in `docs/dev/debt/libSceGameLiveStreaming.md`. PPSA14632 imports it. ### Tested `guest_game_live_streaming_program_info` on this branch expects 0 from `sceGameLiveStreamingGetProgramInfo`. On current `main` that test aborts (the call throws). With this change it passes. `python tools/check_conventions.py --base main` passed. `tools/progress.py`: libSceGameLiveStreaming 3/4 to 4/4. No MinGW toolchain on this machine, so full `ctest` was not run. Not tested with a title; no title on `main` is shown to call this. ### 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 their library's technical debt file - [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] Unblocks: none (PPSA14632 imports it) - [x] GPUs tested: n/a - [x] AI-assisted: yes Made with [Cursor](https://cursor.com)
github-actions[bot] commented 2026-10-13 17:43:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T17:43:29Z.


Progress report (18c438b → ce3799a)

📈 System libraries: 88.18% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceGameLiveStreaming sceGameLiveStreamingGetProgramInfo
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceGameLiveStreaming sceGameLiveStreamingGetProgramInfo
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6151580329 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5352#issuecomment-6151580329). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T17:43:29Z. --- <!-- progress-report --> ### Progress report (18c438b → ce3799a) 📈 **System libraries**: 88.18% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceGameLiveStreaming | `sceGameLiveStreamingGetProgramInfo` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceGameLiveStreaming | `sceGameLiveStreamingGetProgramInfo` | </details>
coltken95 commented 2026-10-13 19:17:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-13T19:17:49Z.


Tested on Linux x86-64 (Release build, CTest), with ce3799aab merged into main 18c438b10:

  • With the PR: guest_game_live_streaming_program_info passes.
  • The test is new with this PR, so it doesn't exist on main to compare against.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6153282564 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5352#issuecomment-6153282564). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-13T19:17:49Z. --- Tested on Linux x86-64 (Release build, CTest), with ce3799aab merged into main 18c438b10: - With the PR: `guest_game_live_streaming_program_info` passes. - The test is new with this PR, so it doesn't exist on main to compare against. AI-assisted: yes (Claude Code)
adriadam10 commented 2026-10-14 11:38:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T11:38:03Z.

Review: CHANGES_REQUESTED


Thanks for the PR. Checked on Linux: build and guest_game_live_streaming_program_info pass, and the test fails without the Export.cpp change. The problem is what the change claims, not the build:

  • core/libs/prx/libSceGameLiveStreaming/Export.cpp:38: the only source cited is shadPS4's (STUBBED) return ORBIS_OK with no parameters. That is a placeholder, not a behaviour: it gives neither the signature nor what the real function writes or returns. I found nothing in KytyPS5, prosper, SharpProspero or prospero-win either.
  • Returning 0 from a function a title calls (PPSA14632 per the description) without filling whatever output it expects makes the guest read uninitialised data where main fails loudly. That is the "exact or throw" case; the silent-stub exemption in CONTRIBUTING is for UI behaviour only.
  • core/libs/tests/GuestGameLiveStreamingProgramInfo.cpp only pins the stub's own 0, so it can't show the value is right.

What would fix it: either keep the throw until the signature and the no-stream result are known, or bring evidence for them (a reference with the real parameters and error code for "not streaming", or the disassembly of the call site in a title) and implement and test that result. GetCurrentStatus2 reporting "not on air" doesn't by itself say this call should succeed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5517269241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5352#pullrequestreview-5517269241). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T11:38:03Z. **Review:** CHANGES_REQUESTED --- Thanks for the PR. Checked on Linux: build and `guest_game_live_streaming_program_info` pass, and the test fails without the `Export.cpp` change. The problem is what the change claims, not the build: - `core/libs/prx/libSceGameLiveStreaming/Export.cpp:38`: the only source cited is shadPS4's `(STUBBED)` `return ORBIS_OK` with no parameters. That is a placeholder, not a behaviour: it gives neither the signature nor what the real function writes or returns. I found nothing in KytyPS5, prosper, SharpProspero or prospero-win either. - Returning 0 from a function a title calls (PPSA14632 per the description) without filling whatever output it expects makes the guest read uninitialised data where `main` fails loudly. That is the "exact or throw" case; the silent-stub exemption in CONTRIBUTING is for UI behaviour only. - `core/libs/tests/GuestGameLiveStreamingProgramInfo.cpp` only pins the stub's own `0`, so it can't show the value is right. What would fix it: either keep the throw until the signature and the no-stream result are known, or bring evidence for them (a reference with the real parameters and error code for "not streaming", or the disassembly of the call site in a title) and implement and test that result. `GetCurrentStatus2` reporting "not on air" doesn't by itself say this call should succeed.
github-actions[bot] commented 2026-10-15 18:38:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T18:38:57Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6447 core/libs/prx/libSceGameLiveStreaming/Export.cpp
docs/dev/debt/libSceGameLiveStreaming.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6199546265 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5352#issuecomment-6199546265). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T18:38:57Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceGameLiveStreaming/Export.cpp`<br>`docs/dev/debt/libSceGameLiveStreaming.md` |
notaxeltv commented 2026-10-15 20:01:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-15T20:01:00Z.


Closing to free intake for a title-blocking AGC COPY_DATA GDS fix (PPSA03541). Can reopen after merges if still needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6201117438 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5352#issuecomment-6201117438). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-15T20:01:00Z. --- Closing to free intake for a title-blocking AGC COPY_DATA GDS fix (PPSA03541). Can reopen after merges if still needed.

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