feat(libSceGameLiveStreaming): answer sceGameLiveStreamingGetProgramInfo with an empty program #9031
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9031"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-21T10:06:53Z.
What
sceGameLiveStreamingGetProgramInfo(OIIm19xu+NM) threw. PPSA08427 and PPSA29340 import it.In the decrypted PS5 12.00
libSceGameLiveStreaming, the export (0x2050) does this under the module lock:0x80A00004before initialization;0x80A00002for a null pointer;0x80A00001for a positive service result.Here the call takes the info pointer. Under the module lock it returns
0x80A00004beforesceGameLiveStreamingInitialize, using the initialization statemainnow tracks, and0x80A00002for null. Otherwise it clears the 0x134C bytes and returns 0, as with no program on air. This matchessceGameLiveStreamingGetCurrentStatus2, which already reports that nothing is broadcast.One console behaviour is not reproduced: what the service fills in when nothing is on air is not measured. The all-zero info is an assumption and is recorded under Functional in the debt file.
The code is written from the observed behaviour; nothing from the module is copied.
Tested
Linux (CachyOS, GCC, Release).
guest_game_live_streamingasserted that the call throws. It now checks the null result and that exactly 0x134C bytes are cleared, with the bytes after them untouched. The test passes.tools/check_conventions.pyis clean. #8333 adds other exports to the same two files. The three-way merge adds no conflict, because the new Functional section sits above "Unknown function info", where #8333 appends.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T10:07:38Z.
Progress report (
8c26eac→55de3d4)📈 System libraries: 42.34% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceGameLiveStreamingGetProgramInfoImported from boykopovar/AnyPS5. Originally posted by clairtonmichel on 2026-10-21T10:29:51Z.
Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):
guest_game_live_streamingtest suite: 100% passed successfully (1/1 green in 0.01s).Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T15:42:42Z.
Independent Windows run of this PR (data only).
Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against
mainis clean. I built onlyguest_game_live_streaming_tests;ctest -N -R guest_game_live_streaminglists exactly one test.PR head tested:
98e8a2b791a03b55677d7ed35f30f64d33cdff6d.Results (3 runs each):
guest_game_live_streamingpasses 3/3.core/libs/prx/libSceGameLiveStreaming/Export.cppwith the version from the PR's merge base (27c88a8d75), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.GPU: the run output has no
Selected GPUline; no GPU claim is made.Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-22T09:10:59Z.
@clairtonmichel @xXPBSXx thanks for the Linux and Windows runs. One change since then: after merging
main,sceGameLiveStreamingGetProgramInfotakes the lock and returns not initialised (0x80A00004) before it checks for null (0x80A00002), as the firmware does, and the test now covers that order. The clear is still 0x134C bytes.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:41:01Z.
The overlap report names #9524. I confirmed the pairwise merge conflicts in
GuestGameLiveStreaming.cppanddocs/dev/debt/libSceGameLiveStreaming.md; the implementation areas are otherwise separate. Please coordinate the landing order with #9524’s author, who has been asked to record any requiredDepends onlink and preserve both test/debt changes.Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-22T12:13:39Z.
@MarcZX10 thanks for checking the overlap. @AlxcBTW, #9524 and this PR only meet in
core/libs/tests/GuestGameLiveStreaming.cppanddocs/dev/debt/libSceGameLiveStreaming.md; the implementations don't overlap. Neither depends on the other, so I'd propose: whichever is merged first goes in as is, and the second one mergesmainand keeps both sides of those two files: both sets of test checks and both debt entries. If yours lands first, I'll do that merge here and rerunguest_game_live_streaming.