feat(libs): add exports imported by PPSA12544's Unity plugins #763

Merged
merwie merged 2 commits from upstream-pr/763 into main 2026-10-06 21:01:29 +00:00
merwie commented 2026-10-05 21:41:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-05T21:41:06Z.


What

PPSA12544 (Hollow Knight: Silksong) loads native Unity plugins from Media/Plugins (CommonDialog.prx, PSN.prx, Share.prx, ...). Their imports that no library provided and no open pull request adds:

  • libSceVrSetupDialog (new library, all unimplemented): sceVrSetupDialogClose, GetResult, Initialize, Open, Terminate, UpdateStatus — CommonDialog.prx needs libSceVrSetupDialog.prx, so startup stopped with Failed to load module ... libSceVrSetupDialog.prx.
  • libSceWebBrowserDialog: sceWebBrowserDialogSetCookie (unimplemented)
  • libSceNpEntitlementAccess: sceNpEntitlementAccessPollServiceEntitlementInfo, PollUnifiedEntitlementInfo, RequestServiceEntitlementInfo, RequestUnifiedEntitlementInfo (unimplemented); sceNpEntitlementAccessRequestConsumeServiceEntitlement returns SCE_NP_ERROR_SIGNED_OUT like sceNpEntitlementAccessRequestConsumeUnifiedEntitlement
  • libSceNpTrophy2: sceNpTrophy2GetRewardIcon, sceNpTrophy2ShowTrophyList (unimplemented)
  • libSceShare: sceShareCaptureVideoClipExtended, sceShareGetRunningStatus, sceShareSetContentParamForApplicationTitle (unimplemented)

Signatures are unknown; recorded in TechnicalDebt.

The plugins' other missing imports are already covered elsewhere: the ...InfoList entitlement functions and sceWebBrowserDialogOpenForPredeterminedContent / ResetCookie by #734, the sce::Json InitParameter2 functions by #369, sceNpEntitlementAccessGetEntitlementKey and sceNpUnregisterNpReachabilityStateCallback by #407, and sceMsgDialogProgressBar* from libSceMsgDialog.native by #762.

Tested

Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT.

  • ctest: 315/317 passed. agc_driver_lds_atomics64 and agc_driver_vopc_compare_table fail on this machine on main as well (Vulkan device tests).
  • PPSA12544 with the plugins relinked and #734, #369, #762 plus stand-ins for #407's two functions: all plugin imports resolve at startup. None of these functions were observed being called yet. Bring-up notes: #726.

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 (#734 and #737 also edit libSceWebBrowserDialog, libSceNpEntitlementAccess and libSceShare exports, in other functions)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4751090572 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/763). Originally posted by [merwie](https://github.com/merwie) on 2026-10-05T21:41:06Z. --- ### What PPSA12544 (Hollow Knight: Silksong) loads native Unity plugins from `Media/Plugins` (`CommonDialog.prx`, `PSN.prx`, `Share.prx`, ...). Their imports that no library provided and no open pull request adds: - **libSceVrSetupDialog** (new library, all unimplemented): `sceVrSetupDialogClose`, `GetResult`, `Initialize`, `Open`, `Terminate`, `UpdateStatus` — `CommonDialog.prx` needs `libSceVrSetupDialog.prx`, so startup stopped with `Failed to load module ... libSceVrSetupDialog.prx`. - libSceWebBrowserDialog: `sceWebBrowserDialogSetCookie` (unimplemented) - libSceNpEntitlementAccess: `sceNpEntitlementAccessPollServiceEntitlementInfo`, `PollUnifiedEntitlementInfo`, `RequestServiceEntitlementInfo`, `RequestUnifiedEntitlementInfo` (unimplemented); `sceNpEntitlementAccessRequestConsumeServiceEntitlement` returns `SCE_NP_ERROR_SIGNED_OUT` like `sceNpEntitlementAccessRequestConsumeUnifiedEntitlement` - libSceNpTrophy2: `sceNpTrophy2GetRewardIcon`, `sceNpTrophy2ShowTrophyList` (unimplemented) - libSceShare: `sceShareCaptureVideoClipExtended`, `sceShareGetRunningStatus`, `sceShareSetContentParamForApplicationTitle` (unimplemented) Signatures are unknown; recorded in TechnicalDebt. The plugins' other missing imports are already covered elsewhere: the `...InfoList` entitlement functions and `sceWebBrowserDialogOpenForPredeterminedContent` / `ResetCookie` by #734, the `sce::Json` `InitParameter2` functions by #369, `sceNpEntitlementAccessGetEntitlementKey` and `sceNpUnregisterNpReachabilityStateCallback` by #407, and `sceMsgDialogProgressBar*` from `libSceMsgDialog.native` by #762. ### Tested Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT. - `ctest`: 315/317 passed. `agc_driver_lds_atomics64` and `agc_driver_vopc_compare_table` fail on this machine on `main` as well (Vulkan device tests). - PPSA12544 with the plugins relinked and #734, #369, #762 plus stand-ins for #407's two functions: all plugin imports resolve at startup. None of these functions were observed being called yet. Bring-up notes: #726. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [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 (#734 and #737 also edit `libSceWebBrowserDialog`, `libSceNpEntitlementAccess` and `libSceShare` exports, in other functions) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-05 23:04:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T23:04:37Z.


Progress report (481c85e → 44bfb92)

📉 System libraries: 81.93% (-0.38%, +1 implemented, +16 declared functions)

✅ 1 implemented
Library Name
libSceNpEntitlementAccess sceNpEntitlementAccessRequestConsumeServiceEntitlement
🆕 16 declared as stubs
Library Name
libSceNpEntitlementAccess sceNpEntitlementAccessPollServiceEntitlementInfo
libSceNpEntitlementAccess sceNpEntitlementAccessPollUnifiedEntitlementInfo
libSceNpEntitlementAccess sceNpEntitlementAccessRequestServiceEntitlementInfo
libSceNpEntitlementAccess sceNpEntitlementAccessRequestUnifiedEntitlementInfo
libSceNpTrophy2 sceNpTrophy2GetRewardIcon
libSceNpTrophy2 sceNpTrophy2ShowTrophyList
libSceShare sceShareCaptureVideoClipExtended
libSceShare sceShareGetRunningStatus
libSceShare sceShareSetContentParamForApplicationTitle
libSceVrSetupDialog sceVrSetupDialogClose
libSceVrSetupDialog sceVrSetupDialogGetResult
libSceVrSetupDialog sceVrSetupDialogInitialize
libSceVrSetupDialog sceVrSetupDialogOpen
libSceVrSetupDialog sceVrSetupDialogTerminate
libSceVrSetupDialog sceVrSetupDialogUpdateStatus
libSceWebBrowserDialog sceWebBrowserDialogSetCookie
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6005019481 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/763#issuecomment-6005019481). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T23:04:37Z. --- <!-- progress-report --> ### Progress report (481c85e → 44bfb92) 📉 **System libraries**: 81.93% (-0.38%, +1 implemented, +16 declared functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpEntitlementAccess | `sceNpEntitlementAccessRequestConsumeServiceEntitlement` | </details> <details> <summary>🆕 16 declared as stubs</summary> | Library | Name | | - | - | | libSceNpEntitlementAccess | `sceNpEntitlementAccessPollServiceEntitlementInfo` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessPollUnifiedEntitlementInfo` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessRequestServiceEntitlementInfo` | | libSceNpEntitlementAccess | `sceNpEntitlementAccessRequestUnifiedEntitlementInfo` | | libSceNpTrophy2 | `sceNpTrophy2GetRewardIcon` | | libSceNpTrophy2 | `sceNpTrophy2ShowTrophyList` | | libSceShare | `sceShareCaptureVideoClipExtended` | | libSceShare | `sceShareGetRunningStatus` | | libSceShare | `sceShareSetContentParamForApplicationTitle` | | libSceVrSetupDialog | `sceVrSetupDialogClose` | | libSceVrSetupDialog | `sceVrSetupDialogGetResult` | | libSceVrSetupDialog | `sceVrSetupDialogInitialize` | | libSceVrSetupDialog | `sceVrSetupDialogOpen` | | libSceVrSetupDialog | `sceVrSetupDialogTerminate` | | libSceVrSetupDialog | `sceVrSetupDialogUpdateStatus` | | libSceWebBrowserDialog | `sceWebBrowserDialogSetCookie` | </details>
oneandonlydean commented 2026-10-05 23:37:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T23:37:43Z.


This needs a rebase now that #699 has landed: docs/dev/TechnicalDebt.md conflicts with current main in the unknown-signature list. #699 rewrote the lines just above yours (the sceKernelGetOperationMode entry and the "Font, Http2, Net, Ssl, SystemService and libkernel exports imported by PPSA12544" line), so the resolution is to keep main's lines as they are and add your libSceVrSetupDialog / Share / NpTrophy2 / NpEntitlementAccess / WebBrowserDialog line after them. The code merges cleanly.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6005565868 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/763#issuecomment-6005565868). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T23:37:43Z. --- This needs a rebase now that #699 has landed: `docs/dev/TechnicalDebt.md` conflicts with current `main` in the unknown-signature list. #699 rewrote the lines just above yours (the `sceKernelGetOperationMode` entry and the "Font, Http2, Net, Ssl, SystemService and libkernel exports imported by PPSA12544" line), so the resolution is to keep `main`'s lines as they are and add your `libSceVrSetupDialog` / Share / NpTrophy2 / NpEntitlementAccess / WebBrowserDialog line after them. The code merges cleanly.
merwie commented 2026-10-06 07:59:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-06T07:59:50Z.


Merged main (a merge, not a rebase, so the review history stays) and kept both TechnicalDebt.md lines in the order you suggested. Nothing else changed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6011985166 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/763#issuecomment-6011985166). Originally posted by [merwie](https://github.com/merwie) on 2026-10-06T07:59:50Z. --- Merged `main` (a merge, not a rebase, so the review history stays) and kept both `TechnicalDebt.md` lines in the order you suggested. Nothing else changed.
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!763
No description provided.