libSceSystemGesture and libSceSharePlay exports that stop RE4 #3144
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 xXPBSXx on 2026-10-10T23:02:44Z.
AI-assisted (Claude Code), reviewed by the contributor.
Two exports that stopped the title on a throwing stub while running RE4 (PPSA07411) on Windows. Both are minimal "nothing there" implementations, not real ones; both are listed in
docs/dev/TechnicalDebt.mdand have tests.tools/check_conventions.pypasses on each branch.GetPrimitiveTouchEvents,GetPrimitiveTouchEventsCount,GetTouchEvents,GetPrimitiveTouchEventByIndex, recognizer append/remove/reset/update) now report no touch input and check the handle and pointer arguments. Error codes 0x80D10002/0x80D10003/0x80D10005 are the ones already used in this file. Branch: https://github.com/xXPBSXx/AnyPS5/tree/fix/systemgesture-no-touch-events (testguest_system_gesture)sceSharePlayGetCurrentConnectionInfoAis not exported onmain. The branch adds it, succeeding without writing the info (null pointer throws). The real error code and info layout are unknown, so this is a guess that only lets the title continue. Branch: https://github.com/xXPBSXx/AnyPS5/tree/fix/shareplay-connection-info (this relates to the null-heap work in #2946)Not opened as PRs because intake is paused for new contributors; a maintainer is welcome to carry the commits.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T23:07:02Z.
@xXPBSXx thanks for the RE4 update on #2776, good to hear it's past
Party.prx.A heads-up on the SystemGesture half: #3109 (
feat/system-gesture-no-touch,d1e20908, opened a bit earlier today) covers the same calls with the same three error codes, and it also adds a test namedguest_system_gesture, so the two branches would conflict. I compared them: they implement the same set, except that #3109 also doesGetTouchRecognizerInformation.CreateTouchRecognizerkeeps the type and rectangle in the recognizer buffer,UpdateTouchRecognizerRectanglechanges it, and the information call reports both. Both leave the two ID lookups throwing.Since you have RE4, could you check whether it gets to the same point with #3109's branch instead of yours? If it does, the maintainers only need to carry one of them. If RE4 needs something yours has and mine doesn't, tell me and I'll add it. The SharePlay part doesn't overlap with anything of mine.
AI-assisted (Claude Code); I compared the two branches' exports on my machine.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:04:46Z.
Carried the SystemGesture half in #3174 with your commits and authorship kept, plus a test commit for the remaining handle and null checks. It cites the RE4 stop from here and the PPSA06320 log from #572. The SharePlay half isn't included: its result is a guess with no reference, so it stays out until the real error code and info layout are known.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T00:53:53Z.
Thank you @adriadam10 for carrying the
libSceSystemGesturepart (#3174, merged) with the authorship kept. ThelibSceSharePlaybranch from this issue (fix/shareplay-connection-info, one export plus test and TechnicalDebt entry) is still open for anyone who wants to carry it; a trial merge into currentmain(06da1176) has no conflicts.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T01:10:52Z.
@adriadam10 @xXPBSXx on the SharePlay half: I found two references for the layout and error code, and they agree.
libNet.cppdeclaresSharePlayConnectionInfoAasstatus,mode, two 20-byte online IDs, two 64-bit account IDs and two user IDs, withstatic_asserts for a size of 72,host_account_idat 48 andhost_user_idat 64. ItssceSharePlayGetCurrentConnectionInfoAreturnsSHARE_PLAY_ERROR_INVALID_ARGS(-2129788927, 0x810E0001) for a null pointer and otherwise writes status 0 with both user IDs -1.ps4_libsceshareplay.pashas the sameSceSharePlayConnectionInfoAfields in the same order,SCE_SHARE_PLAY_ERROR_INVALID_ARGS = 0x810E0001, DORMANT = 0, and also returns INVALID_ARGS for null and a zeroed struct otherwise (so user IDs 0 there).I put that on top of xXPBSXx's commit, which keeps its authorship:
fix/shareplay-connection-info-layout,691b0d50(xXPBSXx) +027ebf97.SharePlayConnectionInfoAgoes inSceTypes.hppnext toNpOnlineId, with the same size and offset asserts.SCE_USER_SERVICE_USER_ID_INVALID, as KytyPS5 does). A null pointer returns 0x810E0001 instead of throwing.sceSharePlayInitialize, which this library has no state for.guest_share_playfills the struct with 0x5a first and checks every field, plus the null case.Tested on Windows 11, WinLibs GCC 15.2.0 r7, Release,
main06da1176:guest_share_playandpatched_librariespass, andtools/check_conventions.py --base upstream/mainpasses. I haven't run RE4 (I don't have it), so xXPBSXx's run is still the title check.AI-assisted (Claude Code); I read both sources and ran the tests on my machine.