fix(libSceSharePlay): export sceSharePlayGetCurrentConnectionInfoA with no Share Play session #3341

Merged
reyani-dev merged 2 commits from upstream-pr/3341 into main 2026-10-11 08:49:50 +00:00
reyani-dev commented 2026-10-11 08:14:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T08:14:25Z.


What

Carries the Share Play fix from #3210 (both authors are under the intake threshold). Both commits are unchanged and keep their authors:

  • 691b0d50 (@xXPBSXx) exports sceSharePlayGetCurrentConnectionInfoA;
  • 027ebf97 (@Silverash-i8) fills its result with the layout and error code from two references.

Resident Evil 4 (PPSA07411) stops on sceSharePlayGetCurrentConnectionInfoA, which main doesn't export (xXPBSXx's report in #3144). With these commits, xXPBSXx's RE4 run in #3210 shows 0 absent imports and no longer stops on it.

SharePlayConnectionInfoA is status, mode, two NpOnlineIds, two 64-bit account IDs and two user IDs (72 bytes, hostAccountId at 48, hostUserId at 64, pinned by static_assert). KytyPS5's libNet.cpp and fpPS4's ps4_libsceshareplay.pas agree on it. The library keeps no session, so the call reports none: status 0 (DORMANT), mode 0, empty online IDs, account IDs 0 and both user IDs -1. A null pointer returns SCE_SHARE_PLAY_ERROR_INVALID_ARGS (0x810E0001), as both references do. guest_share_play checks every field and the null case. The TechnicalDebt entry records that console behaviour during a session is unverified.

Closes #3210.

Tested

Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, on main:

  • guest_share_play passes 3/3. With libSceSharePlay/Export.cpp reverted to main it doesn't link.
  • ctest -E "^agc_|video_out": 428/428.
  • check_conventions.py passes. pr_overlap.py reports only #3315 and #3337, which append other lines at the end of TechnicalDebt.md.

I don't have the title; the RE4 result is xXPBSXx's from #3210.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4817651831 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3341). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-11T08:14:25Z. --- ### What Carries the Share Play fix from #3210 (both authors are under the intake threshold). Both commits are unchanged and keep their authors: - `691b0d50` (@xXPBSXx) exports `sceSharePlayGetCurrentConnectionInfoA`; - `027ebf97` (@Silverash-i8) fills its result with the layout and error code from two references. Resident Evil 4 (PPSA07411) stops on `sceSharePlayGetCurrentConnectionInfoA`, which `main` doesn't export (xXPBSXx's report in #3144). With these commits, xXPBSXx's RE4 run in #3210 shows 0 absent imports and no longer stops on it. `SharePlayConnectionInfoA` is `status`, `mode`, two `NpOnlineId`s, two 64-bit account IDs and two user IDs (72 bytes, `hostAccountId` at 48, `hostUserId` at 64, pinned by `static_assert`). KytyPS5's `libNet.cpp` and fpPS4's `ps4_libsceshareplay.pas` agree on it. The library keeps no session, so the call reports none: status 0 (DORMANT), mode 0, empty online IDs, account IDs 0 and both user IDs -1. A null pointer returns `SCE_SHARE_PLAY_ERROR_INVALID_ARGS` (`0x810E0001`), as both references do. `guest_share_play` checks every field and the null case. The TechnicalDebt entry records that console behaviour during a session is unverified. Closes #3210. ### Tested Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, on `main`: - `guest_share_play` passes 3/3. With `libSceSharePlay/Export.cpp` reverted to `main` it doesn't link. - `ctest -E "^agc_|video_out"`: 428/428. - `check_conventions.py` passes. `pr_overlap.py` reports only #3315 and #3337, which append other lines at the end of `TechnicalDebt.md`. I don't have the title; the RE4 result is xXPBSXx's from #3210. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-11 08:14:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T08:14:47Z.


Progress report (df09e33 → 0d2eeb8)

📈 System libraries: 85.57% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceSharePlay sceSharePlayGetCurrentConnectionInfoA
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107029970 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3341#issuecomment-6107029970). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T08:14:47Z. --- <!-- progress-report --> ### Progress report (df09e33 → 0d2eeb8) 📈 **System libraries**: 85.57% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceSharePlay | `sceSharePlayGetCurrentConnectionInfoA` | </details>
adriadam10 commented 2026-10-11 08:49:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:49:47Z.


Checked on Linux: build + ctest of libs (guest_share_play passes, 16/16 scoped); without the change the test doesn't compile. Layout (72 bytes), null → 0x810E0001 and the zeroed result match fpPS4 and KytyPS5; the user-ID difference is recorded in TechnicalDebt. Conventions/intake green; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107293005 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3341#issuecomment-6107293005). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:49:47Z. --- Checked on Linux: build + ctest of libs (`guest_share_play` passes, 16/16 scoped); without the change the test doesn't compile. Layout (72 bytes), null → `0x810E0001` and the zeroed result match fpPS4 and KytyPS5; the user-ID difference is recorded in TechnicalDebt. Conventions/intake green; merging.
Sign in to join this conversation.
No reviewers
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!3341
No description provided.