Skip to content

feat(libSceGameLiveStreaming): implement sceGameLiveStreamingEnableLiveStreaming - #9319

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
savvaniss:feat/gamelivestreaming-enable-live-streaming
Oct 23, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
savvaniss:feat/gamelivestreaming-enable-live-streaming

Conversation

@savvaniss

@savvaniss savvaniss commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What

Implements sceGameLiveStreamingEnableLiveStreaming, which #8114 only declared.

  • Signature: int sceGameLiveStreamingEnableLiveStreaming(const bool isEnableLiveStreaming), from Orbital's type database; fpPS4 has the same one-Boolean signature. shadPS4 and GPCS4 declare it without parameters.
  • No broadcast is ever on air, so both values return 0 and change nothing; sceGameLiveStreamingGetCurrentStatus2 keeps reporting no stream.
  • A call outside sceGameLiveStreamingInitialize / sceGameLiveStreamingTerminate throws std::logic_error. It reads the library's g_initialized under g_mutex, which fix(libs): libs funcs abi debt 2026 10 20 #9137 added. The module's error for this call is not confirmed: fix(libs): libs funcs abi debt 2026 10 20 #9137 returns 0x80A00004 from sceGameLiveStreamingTerminate and sceGameLiveStreamingGetCurrentStatus2, and fpPS4 defines SCE_GAME_LIVE_STREAMING_ERROR_NOT_INITIALIZED but never returns it from this call. Throwing follows libSceContentDelete. If the module confirms 0x80A00004 here, the throw becomes that return.
  • Debt: the "declared without parameters" entry is replaced by one that records the uninitialized case.

Overlap from pr_overlap.py, after merging main:

Tested

Windows 11, WinLibs GCC 15.2.0, targeted build of libSceGameLiveStreaming and guest_game_live_streaming_tests, at 7372200418 (current main 4777caca34 merged in):

  • ctest --test-dir build -R guest_game_live_streaming -V: passes, 3 of 3 runs.
  • The extended test fails with main's library, on an uncaught sceGameLiveStreamingEnableLiveStreaming 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 fix(libs): libs funcs abi debt 2026 10 20 #9137's.
  • Independent run by @xXPBSXx (comment) at the previous head b6f96055bf: Windows 10 Pro 19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (UCRT), Release. guest_game_live_streaming passes 3 of 3. With the merge base's Export.cpp and this pull request's test, it fails 3 of 3 (exit 0xc0000409).

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 implemented right 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

  • 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 under Silent stubs 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
  • Fixes: none
  • Unblocks: CUSA03312 Hasbro Family Fun Pack (CUSA03312) #7198
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

…veStreaming

The signature, int sceGameLiveStreamingEnableLiveStreaming(const bool
isEnableLiveStreaming), follows Orbital and fpPS4. No broadcast is ever
on air, so both values succeed and change nothing. A call outside
sceGameLiveStreamingInitialize and sceGameLiveStreamingTerminate throws,
as the console's error for it is unknown.

Monopoly Plus (CUSA03312) stopped at this call after its language screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Progress report (4777cac → 7372200)

📈 System libraries: 43.24% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceGameLiveStreaming sceGameLiveStreamingEnableLiveStreaming

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

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 9524 core/libs/prx/libSceGameLiveStreaming/Export.cpp
core/libs/tests/GuestGameLiveStreaming.cpp
docs/dev/debt/libSceGameLiveStreaming.md
PR 9826 core/libs/prx/libSceGameLiveStreaming/Export.cpp
PR 9827 core/libs/prx/libSceGameLiveStreaming/Export.cpp

@xXPBSXx

xXPBSXx commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

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 main is clean. I built only guest_game_live_streaming_tests; ctest -N -R guest_game_live_streaming lists exactly one test.

PR head tested: b6f96055bf558fb3e156c359b389926e1f5ee3a7.

Results (3 runs each):

  • PR head: guest_game_live_streaming passes 3/3.
  • Baseline: I kept the PR's test and replaced only core/libs/prx/libSceGameLiveStreaming/Export.cpp with 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 GPU line; 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).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@savvaniss

Copy link
Copy Markdown
Contributor Author

@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, and sceGameLiveStreamingEnableLiveStreaming now reads its g_initialized under g_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 with main's library and with the initialization check removed (3 of 3 runs each). check_conventions.py passes.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 22, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

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 required Depends on link and preserve both test changes.

@oneandonlydean oneandonlydean self-assigned this Oct 22, 2026
@savvaniss

Copy link
Copy Markdown
Contributor Author

@MarcZX10 thanks. I've proposed the order to #9524's author (comment): this one first, then #9524 with Depends on: #9319, or the other way round if they prefer.

The two heads conflict only in GuestGameLiveStreaming.cpp, and keeping both sides of each hunk resolves it. With that merge, guest_game_live_streaming passes on Windows (3 of 3 runs), so both test changes survive either order.

I'll update Depends on here once the order is agreed.

AI-assisted: yes (Claude Code)

@oneandonlydean
oneandonlydean merged commit a1777d7 into boykopovar:main Oct 23, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs prx unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants