Skip to content

feat(vsh): answer the Remote Play and share status wrappers - #4307

Closed
utkuhalis wants to merge 1 commit into
boykopovar:mainfrom
AnyTogether:pr/vsh-remoteplay-share-status
Closed

utkuhalis wants to merge 1 commit into
boykopovar:mainfrom
AnyTogether:pr/vsh-remoteplay-share-status

Conversation

@utkuhalis

Copy link
Copy Markdown
Contributor

What

Two of the libReactNative.Modules.Vsh shell module wrappers now answer like the system libraries they wrap:

  • RemotePlayGetConnectionStatus(userId, status*) reports no Remote Play session (status 0, disconnected), as sceRemoteplayGetConnectionStatus does here. A null status throws.
  • ShareGetCurrentStatus(featureFlag, status*) uses the validation of sceShareGetCurrentStatus in libSceShare: a zero flag or a null status returns INVALID_PARAM (0x81960002). Otherwise it zeroes the 16-byte status.

The wrappers are assumed to take the arguments of the libSceRemoteplay and libSceShare calls, as their current declarations already do. This is recorded in TechnicalDebt, next to the KytyPS5-derived sceShareGetCurrentStatus entry.

ShareInitialize and ShareTerminate are left throwing: doing nothing there would be a silent stub.

A new guest_react_native_vsh test covers both calls.

#4198 changes functions with the same names in the separate libReactNative.Modules.Vsh.WebAppLauncher library. This PR only touches libReactNative.Modules.Vsh.

Tested

  • This code comes from our fork (utkuhalis/AnyPS5-ARM). There it was built on macOS 26 (Apple M3 Pro, x86-64 under Rosetta 2), on a macOS port of the full build.
  • The fork had no test for these wrappers. The guest_react_native_vsh test is new in this PR and has not been run yet. It mirrors the existing guest_share checks for sceShareGetCurrentStatus.
  • On this branch I checked locally:
    • xcrun clang++ -std=c++20 -fsyntax-only passes on libReactNative.Modules.Vsh/Export.cpp and tests/GuestReactNativeVsh.cpp;
    • tools/check_conventions.py passes.
  • Upstream's libraries do not build on macOS, so this branch was not built or run here. Linux and Windows rely on CI.

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

RemotePlayGetConnectionStatus reports no Remote Play session and
ShareGetCurrentStatus an idle share status, as
sceRemoteplayGetConnectionStatus and sceShareGetCurrentStatus do.
@github-actions

Copy link
Copy Markdown

Progress report (6d9a680 → 7e55685)

📈 System libraries: 86.61% (+0.06%, +2 implemented functions)

✅ 2 implemented
Library Name
libReactNative.Modules.Vsh RemotePlayGetConnectionStatus
libReactNative.Modules.Vsh ShareGetCurrentStatus

@oneandonlydean

oneandonlydean commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Closing: no title is shown to call RemotePlayGetConnectionStatus or ShareGetCurrentStatus in libReactNative.Modules.Vsh, and their arguments are assumed. Reopen with the title ID and the log line.

@utkuhalis
utkuhalis deleted the pr/vsh-remoteplay-share-status branch October 12, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants