feat(libs): run the offline common-dialog lifecycle in five dialog libraries #9194

Closed
wail-arch wants to merge 1 commit from upstream-pr/9194 into main
wail-arch commented 2026-10-21 14:54:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wail-arch on 2026-10-21T14:54:40Z.


What

Runs the offline common-dialog lifecycle in five dialog libraries whose exports all threw: libSceHmdSetupDialog, libSceVrServiceDialog, libSceSocialScreenDialog, libSceNpProfileDialog and libSceNpFriendListDialog (35 exports). Each dialog shows nothing and finishes as cancelled by the user, as the VrSetup, Signin, NetCtlAp and NpAuthAuthorizedApp dialogs already do: there is no headset, second screen or PSN sign-in behind them.

  • The lifecycle lives once in libSceCommonDialog/OfflineDialog.hpp (internal linkage, like libSceOpusDec/include/OpusDecoder.hpp), so each .prx keeps its own state and exports only its sce* names. Its checks and 0x80B8xxxx codes are the ones libSceVrSetupDialog uses: Open finishes at once and rejects a null param, Close finishes an initialized dialog, GetResult writes only the 32-bit result word (1) and returns NOT_FINISHED before the dialog finishes.
  • Signatures are the PS4 ones of the Orbital type database (int32_t …(void), Open(const struct*), GetResult(struct*), SceCommonDialogStatus for the status calls). The previous debt entries said no prototypes were known.
  • sceNpProfileDialogOpen, sceNpFriendListDialogOpen and sceNpFriendListDialogGetResult still throw: Orbital lists only the A forms, so their parameters remain unknown.
  • The debt entries move to Silent stubs and state the gaps: PS4-sourced signatures, the result layout and check order unverified on PS5, and no title known to import these libraries.

Overlap: no open pull request names these libraries (searched the open pull requests for Dialog and each library name). tools/pr_overlap.py needs gh, which was not available here.

Tested

Ubuntu 24.04, GCC 13.3, full build (-DBUILD_TESTING=ON). New guest_offline_dialogs links the five libraries and runs the whole lifecycle against each (uninitialized calls, double initialize, null param and result, result before finish, reopen, close before open, terminate twice), then checks that opening one dialog leaves the other four at STATUS_NONE. All 19 -R dialog tests pass. Full ctest -j4: 1793 of 1800 pass. The 7 failures are net_dontwait_blocking_send, _sendto and _sendmsg (the sandbox's network stack never fills the send buffer), guest_socket_stream_options, guest_socket_address_length and guest_tcp (no IPv6 in the container: errno 47), and guest_named_shm_concurrency (the tests ran as root, which skips the EACCES check). None of their build graphs contains a file this pull request changes. No GPU, so the Vulkan tests were skipped. check_conventions.py --base upstream/main passes. No title tested: none is known to import these libraries.

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:4953612655 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9194). Originally posted by [wail-arch](https://github.com/wail-arch) on 2026-10-21T14:54:40Z. --- ### What Runs the offline common-dialog lifecycle in five dialog libraries whose exports all threw: libSceHmdSetupDialog, libSceVrServiceDialog, libSceSocialScreenDialog, libSceNpProfileDialog and libSceNpFriendListDialog (35 exports). Each dialog shows nothing and finishes as cancelled by the user, as the VrSetup, Signin, NetCtlAp and NpAuthAuthorizedApp dialogs already do: there is no headset, second screen or PSN sign-in behind them. - The lifecycle lives once in `libSceCommonDialog/OfflineDialog.hpp` (internal linkage, like `libSceOpusDec/include/OpusDecoder.hpp`), so each `.prx` keeps its own state and exports only its `sce*` names. Its checks and 0x80B8xxxx codes are the ones `libSceVrSetupDialog` uses: `Open` finishes at once and rejects a null param, `Close` finishes an initialized dialog, `GetResult` writes only the 32-bit result word (1) and returns NOT_FINISHED before the dialog finishes. - Signatures are the PS4 ones of the [Orbital type database](https://github.com/AlexAltea/orbital/blob/b321fcdbd700cc02da1cb1ad25412781d5ec73c6/tools/ida/db_types.json) (`int32_t …(void)`, `Open(const struct*)`, `GetResult(struct*)`, `SceCommonDialogStatus` for the status calls). The previous debt entries said no prototypes were known. - `sceNpProfileDialogOpen`, `sceNpFriendListDialogOpen` and `sceNpFriendListDialogGetResult` still throw: Orbital lists only the `A` forms, so their parameters remain unknown. - The debt entries move to Silent stubs and state the gaps: PS4-sourced signatures, the result layout and check order unverified on PS5, and no title known to import these libraries. Overlap: no open pull request names these libraries (searched the open pull requests for `Dialog` and each library name). `tools/pr_overlap.py` needs `gh`, which was not available here. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Ubuntu 24.04, GCC 13.3, full build (`-DBUILD_TESTING=ON`). New `guest_offline_dialogs` links the five libraries and runs the whole lifecycle against each (uninitialized calls, double initialize, null param and result, result before finish, reopen, close before open, terminate twice), then checks that opening one dialog leaves the other four at STATUS_NONE. All 19 `-R dialog` tests pass. Full `ctest -j4`: 1793 of 1800 pass. The 7 failures are `net_dontwait_blocking_send`, `_sendto` and `_sendmsg` (the sandbox's network stack never fills the send buffer), `guest_socket_stream_options`, `guest_socket_address_length` and `guest_tcp` (no IPv6 in the container: `errno 47`), and `guest_named_shm_concurrency` (the tests ran as root, which skips the `EACCES` check). None of their build graphs contains a file this pull request changes. No GPU, so the Vulkan tests were skipped. `check_conventions.py --base upstream/main` passes. No title tested: none is known to import these libraries. ### 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-21 15:42:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T15:42:24Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 9152 core/libs/prx/libSceNpProfileDialog/Export.cpp L1-5, L8-10, L13-15, L18-20, L23-25, L33-35, L38-40, L43-45
docs/dev/debt/libSceNpProfileDialog.md L2, L5
sceNpProfileDialogClose
sceNpProfileDialogGetResult
sceNpProfileDialogGetStatus
sceNpProfileDialogInitialize
sceNpProfileDialogOpenA
sceNpProfileDialogTerminate
sceNpProfileDialogUpdateStatus
PR 9192 core/libs/prx/libSceHmdSetupDialog/Export.cpp L1-5, L8-10, L13-15, L18-20, L23-25, L28-30, L33-35, L38-40
core/libs/prx/libSceNpFriendListDialog/Export.cpp L1-5, L8-10, L18-20, L23-25, L28-30, L38-40, L43-45, L48-50
core/libs/prx/libSceSocialScreenDialog/Export.cpp L1-5, L8-10, L13-15, L18-20, L23-25, L28-30, L33-35, L38-40
core/libs/prx/libSceVrServiceDialog/Export.cpp L1-5, L8-10, L13-15, L18-20, L23-25, L28-30, L33-35, L38-40
docs/dev/debt/libSceHmdSetupDialog.md L3, L5
docs/dev/debt/libSceNpFriendListDialog.md L2, L5
docs/dev/debt/libSceSocialScreenDialog.md L3, L5
docs/dev/debt/libSceVrServiceDialog.md L3, L5
sceHmdSetupDialogClose
sceHmdSetupDialogGetResult
sceHmdSetupDialogGetStatus
sceHmdSetupDialogInitialize
sceHmdSetupDialogOpen
sceHmdSetupDialogTerminate
sceHmdSetupDialogUpdateStatus
sceNpFriendListDialogClose
sceNpFriendListDialogGetResultA
sceNpFriendListDialogGetStatus
sceNpFriendListDialogInitialize
sceNpFriendListDialogOpenA
sceNpFriendListDialogTerminate
sceNpFriendListDialogUpdateStatus
sceSocialScreenDialogClose
sceSocialScreenDialogGetResult
sceSocialScreenDialogGetStatus
sceSocialScreenDialogInitialize
sceSocialScreenDialogOpen
sceSocialScreenDialogTerminate
sceSocialScreenDialogUpdateStatus
sceVrServiceDialogClose
sceVrServiceDialogGetResult
sceVrServiceDialogGetStatus
sceVrServiceDialogInitialize
sceVrServiceDialogOpen
sceVrServiceDialogTerminate
sceVrServiceDialogUpdateStatus
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6320039666 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9194#issuecomment-6320039666). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T15:42:24Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 9152](https://www.github.com/boykopovar/AnyPS5/pull/9152) | `core/libs/prx/libSceNpProfileDialog/Export.cpp` [L1-5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L1-L5), [L8-10](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L8-L10), [L13-15](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L13-L15), [L18-20](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L18-L20), [L23-25](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L23-L25), [L33-35](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L33-L35), [L38-40](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L38-L40), [L43-45](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpProfileDialog/Export.cpp#L43-L45)<br>`docs/dev/debt/libSceNpProfileDialog.md` [L2](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceNpProfileDialog.md#L2), [L5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceNpProfileDialog.md#L5) | `sceNpProfileDialogClose`<br>`sceNpProfileDialogGetResult`<br>`sceNpProfileDialogGetStatus`<br>`sceNpProfileDialogInitialize`<br>`sceNpProfileDialogOpenA`<br>`sceNpProfileDialogTerminate`<br>`sceNpProfileDialogUpdateStatus` | | | [PR 9192](https://www.github.com/boykopovar/AnyPS5/pull/9192) | `core/libs/prx/libSceHmdSetupDialog/Export.cpp` [L1-5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L1-L5), [L8-10](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L8-L10), [L13-15](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L13-L15), [L18-20](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L18-L20), [L23-25](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L23-L25), [L28-30](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L28-L30), [L33-35](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L33-L35), [L38-40](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceHmdSetupDialog/Export.cpp#L38-L40)<br>`core/libs/prx/libSceNpFriendListDialog/Export.cpp` [L1-5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L1-L5), [L8-10](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L8-L10), [L18-20](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L18-L20), [L23-25](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L23-L25), [L28-30](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L28-L30), [L38-40](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L38-L40), [L43-45](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L43-L45), [L48-50](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceNpFriendListDialog/Export.cpp#L48-L50)<br>`core/libs/prx/libSceSocialScreenDialog/Export.cpp` [L1-5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L1-L5), [L8-10](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L8-L10), [L13-15](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L13-L15), [L18-20](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L18-L20), [L23-25](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L23-L25), [L28-30](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L28-L30), [L33-35](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L33-L35), [L38-40](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceSocialScreenDialog/Export.cpp#L38-L40)<br>`core/libs/prx/libSceVrServiceDialog/Export.cpp` [L1-5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L1-L5), [L8-10](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L8-L10), [L13-15](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L13-L15), [L18-20](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L18-L20), [L23-25](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L23-L25), [L28-30](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L28-L30), [L33-35](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L33-L35), [L38-40](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/core/libs/prx/libSceVrServiceDialog/Export.cpp#L38-L40)<br>`docs/dev/debt/libSceHmdSetupDialog.md` [L3](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceHmdSetupDialog.md#L3), [L5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceHmdSetupDialog.md#L5)<br>`docs/dev/debt/libSceNpFriendListDialog.md` [L2](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceNpFriendListDialog.md#L2), [L5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceNpFriendListDialog.md#L5)<br>`docs/dev/debt/libSceSocialScreenDialog.md` [L3](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceSocialScreenDialog.md#L3), [L5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceSocialScreenDialog.md#L5)<br>`docs/dev/debt/libSceVrServiceDialog.md` [L3](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceVrServiceDialog.md#L3), [L5](https://github.com/boykopovar/AnyPS5/blob/cecb540a63f614d2b06cbb557c6d1f6f02475fa3/docs/dev/debt/libSceVrServiceDialog.md#L5) | `sceHmdSetupDialogClose`<br>`sceHmdSetupDialogGetResult`<br>`sceHmdSetupDialogGetStatus`<br>`sceHmdSetupDialogInitialize`<br>`sceHmdSetupDialogOpen`<br>`sceHmdSetupDialogTerminate`<br>`sceHmdSetupDialogUpdateStatus`<br>`sceNpFriendListDialogClose`<br>`sceNpFriendListDialogGetResultA`<br>`sceNpFriendListDialogGetStatus`<br>`sceNpFriendListDialogInitialize`<br>`sceNpFriendListDialogOpenA`<br>`sceNpFriendListDialogTerminate`<br>`sceNpFriendListDialogUpdateStatus`<br>`sceSocialScreenDialogClose`<br>`sceSocialScreenDialogGetResult`<br>`sceSocialScreenDialogGetStatus`<br>`sceSocialScreenDialogInitialize`<br>`sceSocialScreenDialogOpen`<br>`sceSocialScreenDialogTerminate`<br>`sceSocialScreenDialogUpdateStatus`<br>`sceVrServiceDialogClose`<br>`sceVrServiceDialogGetResult`<br>`sceVrServiceDialogGetStatus`<br>`sceVrServiceDialogInitialize`<br>`sceVrServiceDialogOpen`<br>`sceVrServiceDialogTerminate`<br>`sceVrServiceDialogUpdateStatus` | |

Pull request closed

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!9194
No description provided.