feat(libSceGameLiveStreaming): take the screen mode in ScreenSetMode #28903
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28903"
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 MertCtn on 2026-12-04T14:50:57Z.
What
[DRAFT] Take the screen mode in sceGameLiveStreamingScreenSetMode.
Firmware 4.03 libSceGameLiveStreaming.sprx takes one int argument and returns 0x80A00002 unless it is 1 or 2, after the uninitialized 0x80A00004 gate. Declare the parameter, validate its range like the module, and assert both paths in the before-init test. The service tail still throws.
Tested
Windows 11, MSYS2 UCRT64 GCC 16.2.0.
guest_game_live_streamingandguest_game_live_streaming_before_initpass;check_conventions.pyreports 0 errors.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T15:13:38Z.
Review: APPROVED
Reviewed — looks good
The change matches the stated contract: the function takes a mode, checks initialization before validating modes 1 and 2, and keeps valid initialized calls on the existing throwing path.
What I ran
Reviewed head
27cea79844bcae8a36409d0c9bbde1fa1b80063fusing the pinnedrepo_read.pyreader and the prepared review materials. No build or test was run; toolchain and merged-preview checks were not applicable.Results
Negative control
Not run; no test assertion was deliberately changed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The author's reported Windows test and convention-check results were not independently run. The firmware 4.03 disassembly claim and behavior on a physical console were not independently verified. Read all four files listed under
reviewedinfiles.json:core/libs/prx/libSceGameLiveStreaming/Export.cpp,core/libs/prx/libSceGameLiveStreaming/include/Api.hpp,core/libs/tests/GuestGameLiveStreamingBeforeInit.cpp, anddocs/dev/debt/changes/fix-gamelivestreaming-screen-set-mode.md. No files were excluded.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.