feat(libSceShare): capture, open menu and current status calls #737
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/737"
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 adriadam10 on 2026-10-05T18:40:38Z.
What
Implements four libSceShare exports that threw, following KytyPS5
src/libs/libShare.cpp(no other reference has a body):sceShareCaptureScreenshot,sceShareCaptureVideoClip: write-1(invalid request id) toreq_idwhen it is non-null and return0x81960007(not supported), the same assceShareCaptureScreenshotExtendedin #712.sceShareOpenMenuForContent: returns0x81960007.sceShareGetCurrentStatus: returns0x81960002(invalid param) for a zero feature flag or a null status, otherwise zeroes the 16-byteShareCurrentStatusand returns 0. The zeroed status comes only from KytyPS5, so it is listed under "Unknown function info" in TechnicalDebt.Stacked on #712 (its commit is the first one here; it adds the
GuestSharetest and the error constants). This PR is only the second commit.libSceShare.nativehas the same four stubs. They are left as they are. SharpProspero's stub catalog links titles againstlibSceSharewith no.nativefile name (unlike Audiodec/Ajm/AvPlayer), so this PR implements them there. @boykopovar: should the duplicated.nativestubs be removed, as for Ajm (#228)?Tested
Linux, GCC Release:
guest_sharecovers both capture calls with and withoutreq_id/param, the open-menu call, and the status call (valid flags, every byte of the 16-byte status zeroed, the bytes after it untouched, zero flag, null status). Onmainthe test fails because the stubs throw. Each new piece was replaced by a wrong value one at a time, and the test failed every time.ctest -R guest_96/96 passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-05T18:41:01Z.
Progress report (
bc24783→f4b5b1b)📈 System libraries: 79.66% (+0.12%, +4 implemented functions)
✅ 4 implemented
sceShareCaptureScreenshotsceShareCaptureVideoClipsceShareGetCurrentStatussceShareOpenMenuForContentImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T20:30:15Z.
Thanks for this. #712 has landed, so this now conflicts with
maininlibSceShare/Export.cpp,core/libs/tests/GuestShare.cppanddocs/dev/TechnicalDebt.md. Your branch already contains #712's change, so the rebase should be straightforward:Export.cpp: keep one copy ofsceShareCaptureScreenshotExtendedand of theERROR_NOT_SUPPORTED/REQUEST_ID_INVALIDconstants.GuestShare.cpp: take your version; it covers everything the one onmaintests.TechnicalDebt.md: keep yoursceShareGetCurrentStatusline and the_sceUlobjmgrRegisterObjectline from #707 above it.With that resolved, the NIDs match the names and
guest_sharefails on main's code and passes with the change (Linux, GCC).Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T22:29:35Z.
Rebased on current
main(dropped #712's commit, now on main): one copy ofsceShareCaptureScreenshotExtendedand its constants, myGuestShare.cpp, and thesceShareGetCurrentStatusline below #707's.guest_sharepasses.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T23:10:05Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL106