libSceSystemGesture and libSceSharePlay exports that stop RE4 #3144

Closed
opened 2026-10-10 23:02:44 +00:00 by xXPBSXx · 4 comments
xXPBSXx commented 2026-10-10 23:02:44 +00:00 (Migrated from github.com)
Contributor

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.md and have tests. tools/check_conventions.py passes on each branch.

  1. libSceSystemGesture: the primitive and recognizer touch calls (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 (test guest_system_gesture)
  2. libSceSharePlay: sceSharePlayGetCurrentConnectionInfoA is not exported on main. 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5796066504 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3144). Originally posted by [xXPBSXx](https://github.com/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.md` and have tests. `tools/check_conventions.py` passes on each branch. 1. libSceSystemGesture: the primitive and recognizer touch calls (`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 (test `guest_system_gesture`) 2. libSceSharePlay: `sceSharePlayGetCurrentConnectionInfoA` is not exported on `main`. 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.
Silverash-i8 commented 2026-10-10 23:07:02 +00:00 (Migrated from github.com)
Author
Contributor

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 named guest_system_gesture, so the two branches would conflict. I compared them: they implement the same set, except that #3109 also does GetTouchRecognizerInformation. CreateTouchRecognizer keeps the type and rectangle in the recognizer buffer, UpdateTouchRecognizerRectangle changes 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103155484 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3144#issuecomment-6103155484). Originally posted by [Silverash-i8](https://github.com/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 named `guest_system_gesture`, so the two branches would conflict. I compared them: they implement the same set, except that #3109 also does `GetTouchRecognizerInformation`. `CreateTouchRecognizer` keeps the type and rectangle in the recognizer buffer, `UpdateTouchRecognizerRectangle` changes 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.
adriadam10 commented 2026-10-11 00:04:46 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103577463 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3144#issuecomment-6103577463). Originally posted by [adriadam10](https://github.com/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.
xXPBSXx commented 2026-10-11 00:53:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T00:53:53Z.


Thank you @adriadam10 for carrying the libSceSystemGesture part (#3174, merged) with the authorship kept. The libSceSharePlay branch 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 current main (06da1176) has no conflicts.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103947336 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3144#issuecomment-6103947336). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T00:53:53Z. --- Thank you @adriadam10 for carrying the `libSceSystemGesture` part (#3174, merged) with the authorship kept. The `libSceSharePlay` branch 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 current `main` (06da1176) has no conflicts. AI-assisted (Claude Code).
Silverash-i8 commented 2026-10-11 01:10:52 +00:00 (Migrated from github.com)
Author
Contributor

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.

  • KytyPS5 libNet.cpp declares SharePlayConnectionInfoA as status, mode, two 20-byte online IDs, two 64-bit account IDs and two user IDs, with static_asserts for a size of 72, host_account_id at 48 and host_user_id at 64. Its sceSharePlayGetCurrentConnectionInfoA returns SHARE_PLAY_ERROR_INVALID_ARGS (-2129788927, 0x810E0001) for a null pointer and otherwise writes status 0 with both user IDs -1.
  • fpPS4 ps4_libsceshareplay.pas has the same SceSharePlayConnectionInfoA fields 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.

  • SharePlayConnectionInfoA goes in SceTypes.hpp next to NpOnlineId, with the same size and offset asserts.
  • The call writes no session: status DORMANT, mode 0, empty online IDs, account IDs 0, user IDs -1 (SCE_USER_SERVICE_USER_ID_INVALID, as KytyPS5 does). A null pointer returns 0x810E0001 instead of throwing.
  • The TechnicalDebt entry cites both sources and says what isn't settled: the user IDs (-1 in KytyPS5, 0 in fpPS4), and KytyPS5's NOT_INITIALIZED check before sceSharePlayInitialize, which this library has no state for.
  • guest_share_play fills the struct with 0x5a first and checks every field, plus the null case.

Tested on Windows 11, WinLibs GCC 15.2.0 r7, Release, main 06da1176: guest_share_play and patched_libraries pass, and tools/check_conventions.py --base upstream/main passes. 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104071136 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3144#issuecomment-6104071136). Originally posted by [Silverash-i8](https://github.com/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. - [KytyPS5 `libNet.cpp`](https://github.com/KytyPS5/KytyPS5/blob/main/src/libs/libNet.cpp) declares `SharePlayConnectionInfoA` as `status`, `mode`, two 20-byte online IDs, two 64-bit account IDs and two user IDs, with `static_assert`s for a size of 72, `host_account_id` at 48 and `host_user_id` at 64. Its `sceSharePlayGetCurrentConnectionInfoA` returns `SHARE_PLAY_ERROR_INVALID_ARGS` (-2129788927, 0x810E0001) for a null pointer and otherwise writes status 0 with both user IDs -1. - [fpPS4 `ps4_libsceshareplay.pas`](https://github.com/red-prig/fpPS4/blob/trunk/src/ps4_libsceshareplay.pas) has the same `SceSharePlayConnectionInfoA` fields 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`](https://github.com/Silverash-i8/AnyPS5-fork/tree/fix/shareplay-connection-info-layout), `691b0d50` (xXPBSXx) + `027ebf97`. - `SharePlayConnectionInfoA` goes in `SceTypes.hpp` next to `NpOnlineId`, with the same size and offset asserts. - The call writes no session: status DORMANT, mode 0, empty online IDs, account IDs 0, user IDs -1 (`SCE_USER_SERVICE_USER_ID_INVALID`, as KytyPS5 does). A null pointer returns 0x810E0001 instead of throwing. - The TechnicalDebt entry cites both sources and says what isn't settled: the user IDs (-1 in KytyPS5, 0 in fpPS4), and KytyPS5's NOT_INITIALIZED check before `sceSharePlayInitialize`, which this library has no state for. - `guest_share_play` fills the struct with 0x5a first and checks every field, plus the null case. **Tested** on Windows 11, WinLibs GCC 15.2.0 r7, Release, `main` 06da1176: `guest_share_play` and `patched_libraries` pass, and `tools/check_conventions.py --base upstream/main` passes. 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#3144
No description provided.