feat(libSceSystemService): fill the player dialog param as the console does #8337
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8337"
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 KernelPanicNT on 2026-10-20T10:22:12Z.
What
sceSystemServiceInitializePlayerDialogParamnow fills the param the way the console does. Onmainit returns 0 and writes nothing, so a title that initializes the param and then sets only the fields it needs passes uninitialized memory tosceSystemServiceLaunchPlayerDialog.Source of the behaviour. A console measurement in prosper's console oracle (captured 2026-10-08, case). The call got a 256-byte buffer prefilled with
0xaband wrote only its first 0x40 bytes:That is size 0x40 (u64), mode 0, user ID -1, and zeros. The field names and widths after 0x10 (
target_account_id, 40 reserved bytes) and thevoidreturn follow SharpProspero's struct and declaration. The console left0x0000000800693020inrax, which is not an SCE error code, consistent with avoidfunction.On
main, the export checks for null and returns 0. #292 added it for GTA V's Story Mode. PRAGMATA (PPSA02530) also imports it (#8005).What the console does with a null param is not measured, so it now throws instead of returning
0x80A10003; it is recorded as debt.Changes:
SceTypes.hpp:SystemServicePlayerDialogParam(0x40 bytes, with astatic_assert).Export.cpp: the export returnsvoid, throws on null and writes the measured defaults.guest_system_service_tests: the measured bytes, the untouched bytes after 0x40, and the null throw.docs/dev/debt/libSceSystemService.md: a new entry for the null case.Tested
Linux (GitHub Codespace, 4 cores, native build of this branch on
d14a186f4):guest_system_service_tests: 5/5 runs pass.Export.cppfrommain,guest_system_service_testsaborts withSIGABRT(the param is left unwritten); 5/5 pass again after restoring it.Windows (fork CI, run 39403153111, this branch and an unrelated libSceNgs2 branch merged into
mainatd14a186f4): build and the full test suite pass, 1734/1734.Checks:
python3 tools/check_conventions.py --base origin/mainpasses.python3 tools/pr_overlap.py --branch feat/systemservice-player-dialog-param: reports no overlapping change. It could not compare #7201, #5965, #6977, #7081, #7412 and #6044, which conflict withmain; checked by hand: #7201 (macOS port) changesLoadExeccode in the sameExport.cpp, the fourSceTypes.hppPRs change AudioOut, VideoOut, lconv and AvPlayer structures, and #6044 reorganizes tests.tools/progress.py: unchanged (4246/6515 on base and head).Checklist
main(d14a186f4); 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 github-actions[bot] on 2026-10-20T10:34:38Z.
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.
core/libs/SceTypes.hppcore/libs/tests/GuestSystemService.cppcore/libs/SceTypes.hppcore/libs/SceTypes.hppcore/libs/prx/libSceSystemService/Export.cppcore/libs/SceTypes.hppcore/libs/prx/libSceSystemService/Export.cppdocs/dev/debt/libSceSystemService.mdcore/libs/prx/libSceSystemService/Export.cppdocs/dev/debt/libSceSystemService.md