feat(libSceRemoteplay): export missing firmware remote play interfaces #7795

Merged
fogydes merged 1 commit from upstream-pr/7795 into main 2026-10-21 11:11:21 +00:00
fogydes commented 2026-10-19 07:50:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T07:50:12Z.


What

Exports 39 missing firmware interfaces from libSceRemoteplay.sprx backed by NotImplemented_nid_no_patch(__func__) throwing stubs, aligned to the per-module PS5 3.20 export inventory, and documents technical debt in docs/dev/debt/libSceRemoteplay.md.

Exported interfaces (39 total, dump-verified in DNNDHH/PS5-3.20_Libs/libSceRemoteplay.c):

  • sceRemoteplayApprove
  • sceRemoteplayClearAllRegistData
  • sceRemoteplayClearConnectHistory
  • sceRemoteplayConfirmDeviceRegist
  • sceRemoteplayDisconnect
  • sceRemoteplayGeneratePinCode
  • sceRemoteplayGetApMode
  • sceRemoteplayGetConnectHistory
  • sceRemoteplayGetConnectUserId
  • sceRemoteplayGetMbusDeviceInfo
  • sceRemoteplayGetOperationStatus
  • sceRemoteplayGetPrimaryUserId
  • sceRemoteplayGetRemoteplayStatus
  • sceRemoteplayGetRpMode
  • sceRemoteplayImeClose
  • sceRemoteplayImeFilterResult
  • sceRemoteplayImeGetEvent
  • sceRemoteplayImeNotify
  • sceRemoteplayImeNotifyEventResult
  • sceRemoteplayImeOpen
  • sceRemoteplayImeSetCaret
  • sceRemoteplayImeSetText
  • sceRemoteplayIsRemoteOskReady
  • sceRemoteplayIsRemotePlaying
  • sceRemoteplayNotifyMbusDeviceRegistComplete
  • sceRemoteplayNotifyNpPushWakeup
  • sceRemoteplayNotifyPinCodeError
  • sceRemoteplayNotifySubmitCode
  • sceRemoteplayNotifyUserDelete
  • sceRemoteplayPrintAllRegistData
  • sceRemoteplayProhibit
  • sceRemoteplayProhibitStreaming
  • sceRemoteplayServerLock
  • sceRemoteplayServerUnLock
  • sceRemoteplaySetApMode
  • sceRemoteplaySetLogLevel
  • sceRemoteplaySetProhibition
  • sceRemoteplaySetProhibitionForVsh
  • sceRemoteplaySetRpMode

Tested

Windows 11 Home (x86_64), MinGW-w64 GCC 15.2.0, Ninja:

  • Built libSceRemoteplay.prx via ninja -C build-libs libSceRemoteplay.
  • Verified all 39 exports resolve via python3 tools/nid_names.py (all unique NIDs).
  • Verified git diff origin/main has 0 changes to lines 13-25 of Export.cpp (clean additions only).
  • Verified python tools/check_conventions.py --base origin/main (0 findings).
  • Verified python tools/pr_overlap.py --branch feat/remoteplay-firmware-exports (0 overlapping PRs).

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4917659601 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7795). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-19T07:50:12Z. --- ### What Exports 39 missing firmware interfaces from `libSceRemoteplay.sprx` backed by `NotImplemented_nid_no_patch(__func__)` throwing stubs, aligned to the per-module [PS5 3.20 export inventory](https://github.com/DNNDHH/PS5-3.20_Libs/blob/main/libSceRemoteplay.c), and documents technical debt in `docs/dev/debt/libSceRemoteplay.md`. Exported interfaces (39 total, dump-verified in `DNNDHH/PS5-3.20_Libs/libSceRemoteplay.c`): - `sceRemoteplayApprove` - `sceRemoteplayClearAllRegistData` - `sceRemoteplayClearConnectHistory` - `sceRemoteplayConfirmDeviceRegist` - `sceRemoteplayDisconnect` - `sceRemoteplayGeneratePinCode` - `sceRemoteplayGetApMode` - `sceRemoteplayGetConnectHistory` - `sceRemoteplayGetConnectUserId` - `sceRemoteplayGetMbusDeviceInfo` - `sceRemoteplayGetOperationStatus` - `sceRemoteplayGetPrimaryUserId` - `sceRemoteplayGetRemoteplayStatus` - `sceRemoteplayGetRpMode` - `sceRemoteplayImeClose` - `sceRemoteplayImeFilterResult` - `sceRemoteplayImeGetEvent` - `sceRemoteplayImeNotify` - `sceRemoteplayImeNotifyEventResult` - `sceRemoteplayImeOpen` - `sceRemoteplayImeSetCaret` - `sceRemoteplayImeSetText` - `sceRemoteplayIsRemoteOskReady` - `sceRemoteplayIsRemotePlaying` - `sceRemoteplayNotifyMbusDeviceRegistComplete` - `sceRemoteplayNotifyNpPushWakeup` - `sceRemoteplayNotifyPinCodeError` - `sceRemoteplayNotifySubmitCode` - `sceRemoteplayNotifyUserDelete` - `sceRemoteplayPrintAllRegistData` - `sceRemoteplayProhibit` - `sceRemoteplayProhibitStreaming` - `sceRemoteplayServerLock` - `sceRemoteplayServerUnLock` - `sceRemoteplaySetApMode` - `sceRemoteplaySetLogLevel` - `sceRemoteplaySetProhibition` - `sceRemoteplaySetProhibitionForVsh` - `sceRemoteplaySetRpMode` ### Tested Windows 11 Home (x86_64), MinGW-w64 GCC 15.2.0, Ninja: - Built `libSceRemoteplay.prx` via `ninja -C build-libs libSceRemoteplay`. - Verified all 39 exports resolve via `python3 tools/nid_names.py` (all unique NIDs). - Verified `git diff origin/main` has 0 changes to lines 13-25 of `Export.cpp` (clean additions only). - Verified `python tools/check_conventions.py --base origin/main` (0 findings). - Verified `python tools/pr_overlap.py --branch feat/remoteplay-firmware-exports` (0 overlapping PRs). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 07:50:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T07:50:52Z.


Progress report (7526640 → d5463ce)

📉 System libraries: 63.84% (-0.38%, +39 declared functions)

🆕 39 declared as stubs
Library Name
libSceRemoteplay sceRemoteplayApprove
libSceRemoteplay sceRemoteplayClearAllRegistData
libSceRemoteplay sceRemoteplayClearConnectHistory
libSceRemoteplay sceRemoteplayConfirmDeviceRegist
libSceRemoteplay sceRemoteplayDisconnect
libSceRemoteplay sceRemoteplayGeneratePinCode
libSceRemoteplay sceRemoteplayGetApMode
libSceRemoteplay sceRemoteplayGetConnectHistory
libSceRemoteplay sceRemoteplayGetConnectUserId
libSceRemoteplay sceRemoteplayGetMbusDeviceInfo
libSceRemoteplay sceRemoteplayGetOperationStatus
libSceRemoteplay sceRemoteplayGetPrimaryUserId
libSceRemoteplay sceRemoteplayGetRemoteplayStatus
libSceRemoteplay sceRemoteplayGetRpMode
libSceRemoteplay sceRemoteplayImeClose
libSceRemoteplay sceRemoteplayImeFilterResult
libSceRemoteplay sceRemoteplayImeGetEvent
libSceRemoteplay sceRemoteplayImeNotify
libSceRemoteplay sceRemoteplayImeNotifyEventResult
libSceRemoteplay sceRemoteplayImeOpen
libSceRemoteplay sceRemoteplayImeSetCaret
libSceRemoteplay sceRemoteplayImeSetText
libSceRemoteplay sceRemoteplayIsRemoteOskReady
libSceRemoteplay sceRemoteplayIsRemotePlaying
libSceRemoteplay sceRemoteplayNotifyMbusDeviceRegistComplete
libSceRemoteplay sceRemoteplayNotifyNpPushWakeup
libSceRemoteplay sceRemoteplayNotifyPinCodeError
libSceRemoteplay sceRemoteplayNotifySubmitCode
libSceRemoteplay sceRemoteplayNotifyUserDelete
libSceRemoteplay sceRemoteplayPrintAllRegistData
libSceRemoteplay sceRemoteplayProhibit
libSceRemoteplay sceRemoteplayProhibitStreaming
libSceRemoteplay sceRemoteplayServerLock
libSceRemoteplay sceRemoteplayServerUnLock
libSceRemoteplay sceRemoteplaySetApMode
libSceRemoteplay sceRemoteplaySetLogLevel
libSceRemoteplay sceRemoteplaySetProhibition
libSceRemoteplay sceRemoteplaySetProhibitionForVsh
libSceRemoteplay sceRemoteplaySetRpMode
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6262372748 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7795#issuecomment-6262372748). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T07:50:52Z. --- <!-- progress-report --> ### Progress report (7526640 → d5463ce) 📉 **System libraries**: 63.84% (-0.38%, +39 declared functions) <details> <summary>🆕 39 declared as stubs</summary> | Library | Name | | - | - | | libSceRemoteplay | `sceRemoteplayApprove` | | libSceRemoteplay | `sceRemoteplayClearAllRegistData` | | libSceRemoteplay | `sceRemoteplayClearConnectHistory` | | libSceRemoteplay | `sceRemoteplayConfirmDeviceRegist` | | libSceRemoteplay | `sceRemoteplayDisconnect` | | libSceRemoteplay | `sceRemoteplayGeneratePinCode` | | libSceRemoteplay | `sceRemoteplayGetApMode` | | libSceRemoteplay | `sceRemoteplayGetConnectHistory` | | libSceRemoteplay | `sceRemoteplayGetConnectUserId` | | libSceRemoteplay | `sceRemoteplayGetMbusDeviceInfo` | | libSceRemoteplay | `sceRemoteplayGetOperationStatus` | | libSceRemoteplay | `sceRemoteplayGetPrimaryUserId` | | libSceRemoteplay | `sceRemoteplayGetRemoteplayStatus` | | libSceRemoteplay | `sceRemoteplayGetRpMode` | | libSceRemoteplay | `sceRemoteplayImeClose` | | libSceRemoteplay | `sceRemoteplayImeFilterResult` | | libSceRemoteplay | `sceRemoteplayImeGetEvent` | | libSceRemoteplay | `sceRemoteplayImeNotify` | | libSceRemoteplay | `sceRemoteplayImeNotifyEventResult` | | libSceRemoteplay | `sceRemoteplayImeOpen` | | libSceRemoteplay | `sceRemoteplayImeSetCaret` | | libSceRemoteplay | `sceRemoteplayImeSetText` | | libSceRemoteplay | `sceRemoteplayIsRemoteOskReady` | | libSceRemoteplay | `sceRemoteplayIsRemotePlaying` | | libSceRemoteplay | `sceRemoteplayNotifyMbusDeviceRegistComplete` | | libSceRemoteplay | `sceRemoteplayNotifyNpPushWakeup` | | libSceRemoteplay | `sceRemoteplayNotifyPinCodeError` | | libSceRemoteplay | `sceRemoteplayNotifySubmitCode` | | libSceRemoteplay | `sceRemoteplayNotifyUserDelete` | | libSceRemoteplay | `sceRemoteplayPrintAllRegistData` | | libSceRemoteplay | `sceRemoteplayProhibit` | | libSceRemoteplay | `sceRemoteplayProhibitStreaming` | | libSceRemoteplay | `sceRemoteplayServerLock` | | libSceRemoteplay | `sceRemoteplayServerUnLock` | | libSceRemoteplay | `sceRemoteplaySetApMode` | | libSceRemoteplay | `sceRemoteplaySetLogLevel` | | libSceRemoteplay | `sceRemoteplaySetProhibition` | | libSceRemoteplay | `sceRemoteplaySetProhibitionForVsh` | | libSceRemoteplay | `sceRemoteplaySetRpMode` | </details>
adriadam10 commented 2026-10-19 17:31:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T17:31:04Z.

Review: CHANGES_REQUESTED


Thanks for the PR. A few things to fix before this can go in:

  • core/libs/prx/libSceRemoteplay/Export.cpp:13-25: sceRemoteplayGetConnectionStatus, sceRemoteplayInitialize and sceRemoteplayTerminate are re-indented with no other change (-7/+7). Please revert that; it is unrelated to the topic and hides the real diff.
  • The 46 new exports have no source. "Decrypted PS5 firmware 1.00–3.20 export lists" cannot be checked by a reviewer: please cite where the names come from (a public list, a title that imports them with its PPSA id, KytyPS5/shadPS4/prosper, or an SDK header).
  • If no title imports them, these only raise the declared-stub count (the progress report shows System libraries going down 0.89%). Name the title or Discussion that needs them, or limit the PR to the ones a title actually calls.
  • docs/dev/debt/libSceRemoteplay.md:5: one generic line is not enough. List each function whose signature is unknown, with its source (see the "imports declared without parameters, signatures unknown" lines in docs/dev/debt/libSceAgc.md).

Feel free to push the fixes and ping here.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5575293105 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7795#pullrequestreview-5575293105). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T17:31:04Z. **Review:** CHANGES_REQUESTED --- Thanks for the PR. A few things to fix before this can go in: - `core/libs/prx/libSceRemoteplay/Export.cpp:13-25`: `sceRemoteplayGetConnectionStatus`, `sceRemoteplayInitialize` and `sceRemoteplayTerminate` are re-indented with no other change (-7/+7). Please revert that; it is unrelated to the topic and hides the real diff. - The 46 new exports have no source. "Decrypted PS5 firmware 1.00–3.20 export lists" cannot be checked by a reviewer: please cite where the names come from (a public list, a title that imports them with its PPSA id, KytyPS5/shadPS4/prosper, or an SDK header). - If no title imports them, these only raise the declared-stub count (the progress report shows System libraries going down 0.89%). Name the title or Discussion that needs them, or limit the PR to the ones a title actually calls. - `docs/dev/debt/libSceRemoteplay.md:5`: one generic line is not enough. List each function whose signature is unknown, with its source (see the "imports declared without parameters, signatures unknown" lines in `docs/dev/debt/libSceAgc.md`). Feel free to push the fixes and ping here.
fogydes commented 2026-10-20 14:52:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-20T14:52:20Z.


Thanks @adriadam10 for the thorough review!

Updated and rebased on current \main:

  • Reverted the indentation changes in \Export.cpp\ so lines 13-25 now match \main\ with 0 diff.
  • Aligned the export list directly to the per-module PS5 3.20 export inventory: dropped the 10 aerolib names that were PS4-only and not present in the 3.20 dump, leaving 39 dump-verified interfaces.
  • Formatted \docs/dev/debt/libSceRemoteplay.md\ to list each unknown-signature function individually, noting they are declared without parameters as throwing stubs from the PS5 3.20 inventory.
  • Built \libSceRemoteplay.prx\ cleanly, and verified \python tools/check_conventions.py --base origin/main\ reports 0 findings.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6293755100 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7795#issuecomment-6293755100). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-20T14:52:20Z. --- Thanks @adriadam10 for the thorough review! Updated and rebased on current \main\: - Reverted the indentation changes in \Export.cpp\ so lines 13-25 now match \main\ with 0 diff. - Aligned the export list directly to the per-module [PS5 3.20 export inventory](https://github.com/DNNDHH/PS5-3.20_Libs/blob/main/libSceRemoteplay.c): dropped the 10 aerolib names that were PS4-only and not present in the 3.20 dump, leaving 39 dump-verified interfaces. - Formatted \docs/dev/debt/libSceRemoteplay.md\ to list each unknown-signature function individually, noting they are declared without parameters as throwing stubs from the PS5 3.20 inventory. - Built \libSceRemoteplay.prx\ cleanly, and verified \python tools/check_conventions.py --base origin/main\ reports 0 findings.
adriadam10 commented 2026-10-21 11:12:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-21T11:12:00Z.


Checked the re-indent revert (no deleted lines in Export.cpp), the 39 names against the PS5 3.20 libSceRemoteplay inventory you cited (all present), and the per-function debt entries. All stubs throw via NotImplemented_nid_no_patch; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6314509685 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7795#issuecomment-6314509685). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-21T11:12:00Z. --- Checked the re-indent revert (no deleted lines in `Export.cpp`), the 39 names against the PS5 3.20 `libSceRemoteplay` inventory you cited (all present), and the per-function debt entries. All stubs throw via `NotImplemented_nid_no_patch`; merged.
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!7795
No description provided.