feat(libSceGameLiveStreaming): implement sceGameLiveStreamingEnableLiveStreaming #9319
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9319"
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 savvaniss on 2026-10-21T18:20:02Z.
What
Implements
sceGameLiveStreamingEnableLiveStreaming, which #8114 only declared.int sceGameLiveStreamingEnableLiveStreaming(const bool isEnableLiveStreaming), from Orbital's type database; fpPS4 has the same one-Booleansignature. shadPS4 and GPCS4 declare it without parameters.sceGameLiveStreamingGetCurrentStatus2keeps reporting no stream.sceGameLiveStreamingInitialize/sceGameLiveStreamingTerminatethrowsstd::logic_error. It reads the library'sg_initializedunderg_mutex, which #9137 added. The module's error for this call is not confirmed: #9137 returns0x80A00004fromsceGameLiveStreamingTerminateandsceGameLiveStreamingGetCurrentStatus2, and fpPS4 definesSCE_GAME_LIVE_STREAMING_ERROR_NOT_INITIALIZEDbut never returns it from this call. Throwing follows libSceContentDelete. If the module confirms0x80A00004here, the throw becomes that return.Overlap from
pr_overlap.py, after mergingmain:core/libs/tests/GuestGameLiveStreaming.cpp(declarations and test lines at the same places). Whichever lands second merges the other's lines. #9524 returns0x80A00004when not initialized from its calls, followingsceGameLiveStreamingGetCurrentStatus2; if that is preferred for this call too, it is the one-line change above.sceGameLiveStreamingGetProgramInfoand only shares neighbouring lines.std::runtime_error, is closed.Tested
Windows 11, WinLibs GCC 15.2.0, targeted build of
libSceGameLiveStreamingandguest_game_live_streaming_tests, at7372200418(currentmain4777caca34merged in):ctest --test-dir build -R guest_game_live_streaming -V: passes, 3 of 3 runs.main's library, on an uncaughtsceGameLiveStreamingEnableLiveStreaming not implemented, and fails with the initialization check removed (3 of 3 runs each). Before the merge, it also failed with Initialize no longer setting the flag or Terminate no longer clearing it; that state is now #9137's.b6f96055bf: Windows 10 Pro 19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (UCRT), Release.guest_game_live_streamingpasses 3 of 3. With the merge base'sExport.cppand this pull request's test, it fails 3 of 3 (exit0xc0000409).Monopoly Plus (CUSA03312) on Windows 11 with an AMD RX 9070 XT, with this change on the PS4 bring-up branch. Before the change, the title stopped at
sceGameLiveStreamingEnableLiveStreaming not implementedright after its language screen. With it, the title gets past that point and loads its main menu. The window was closed about 130 s in, and nothing stopped the title before that.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
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T18:20:48Z.
Progress report (
4777cac→7372200)📈 System libraries: 43.24% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceGameLiveStreamingEnableLiveStreamingImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T20:41:24Z.
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:
b6f96055bf558fb3e156c359b389926e1f5ee3a7.Results (3 runs each):
guest_game_live_streamingpasses 3/3.core/libs/prx/libSceGameLiveStreaming/Export.cppwith the version from the PR's merge base (b4d10586ef), 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 savvaniss on 2026-10-22T10:56:42Z.
@xXPBSXx thank you for the independent Windows run and the baseline check. I've added it to Tested.
I merged current
main(4777caca34) into the branch (7372200418). The conflict was with #9137, which added the library's initialization state and error codes. The merge keeps #9137's lifecycle and codes, andsceGameLiveStreamingEnableLiveStreamingnow reads itsg_initializedunderg_mutex. It still throws when not initialized, since the module's code for this call is not confirmed. The extended test passes on the merged head and still fails withmain's library and with the initialization check removed (3 of 3 runs each).check_conventions.pypasses.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:41:02Z.
The overlap report names #9524. I confirmed the pairwise merge conflicts in
GuestGameLiveStreaming.cpp; the exported functions are separate. Please coordinate the landing order with #9524’s author, who has been asked to record any requiredDepends onlink and preserve both test changes.