feat(libScePlayerInvitationDIalog): Implement player invitation dialog HLE stub #68

Merged
julienlgy merged 2 commits from upstream-pr/68 into main 2026-09-29 16:22:13 +00:00
julienlgy commented 2026-09-28 07:56:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by julienlgy on 2026-09-28T07:56:01Z.


Implement an HLE stub for libScePlayerInvitationDialog

Why

Games that load libScePlayerInvitationDialog currently have no HLE implementation for the invitation dialog. This can prevent startup or leave games waiting indefinitely for the dialog to finish.

Changes

  • Add the PRX module and its Initialize, Open, UpdateStatus, GetStatus, Close, and Terminate exports.
  • Simulate the None -> Initialized -> Running -> Finished lifecycle: the first UpdateStatus after Open finishes the dialog without displaying UI or starting a network operation.
  • Handle repeated or out-of-order calls and protect shared state with a mutex.
  • Log calls and available arguments to the console without dereferencing the opening parameters, whose ABI layout has not been confirmed.
  • Add a focused test covering opening, polling, closing, reopening, and out-of-order calls.

Verification

cmake --build build_ninja --target player_invitation_dialog_tests
ctest --test-dir build_ninja -R "^player_invitation_dialog$" --output-on-failure
ninja -C build_ninja core/libs/libs/libScePlayerInvitationDialog.prx

The focused test passes, and the NID-patched PRX builds successfully.

Limitations

This stub does not display system UI or send invitations. ScePlayerInvitationDialogParam is opaque; its exact layout and any additional exports still need to be confirmed against traces or a compatible SDK.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4660852562 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/68). Originally posted by [julienlgy](https://github.com/julienlgy) on 2026-09-28T07:56:01Z. --- # Implement an HLE stub for libScePlayerInvitationDialog ## Why Games that load `libScePlayerInvitationDialog` currently have no HLE implementation for the invitation dialog. This can prevent startup or leave games waiting indefinitely for the dialog to finish. ## Changes - Add the PRX module and its `Initialize`, `Open`, `UpdateStatus`, `GetStatus`, `Close`, and `Terminate` exports. - Simulate the `None -> Initialized -> Running -> Finished` lifecycle: the first `UpdateStatus` after `Open` finishes the dialog without displaying UI or starting a network operation. - Handle repeated or out-of-order calls and protect shared state with a mutex. - Log calls and available arguments to the console without dereferencing the opening parameters, whose ABI layout has not been confirmed. - Add a focused test covering opening, polling, closing, reopening, and out-of-order calls. ## Verification ```text cmake --build build_ninja --target player_invitation_dialog_tests ctest --test-dir build_ninja -R "^player_invitation_dialog$" --output-on-failure ninja -C build_ninja core/libs/libs/libScePlayerInvitationDialog.prx ``` The focused test passes, and the NID-patched PRX builds successfully. ## Limitations This stub does not display system UI or send invitations. `ScePlayerInvitationDialogParam` is opaque; its exact layout and any additional exports still need to be confirmed against traces or a compatible SDK.
boykopovar commented 2026-09-28 08:13:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-28T08:13:59Z.


Please move PR_DESCRIPTION.md from the repository to this PR (preferably a force push). And add one item to https://github.com/boykopovar/AnyPS5/blob/main/docs/TechnicalDebt.md#silent-stubs

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5866078603 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/68#issuecomment-5866078603). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-28T08:13:59Z. --- Please move PR_DESCRIPTION.md from the repository to this PR (preferably a force push). And add one item to https://github.com/boykopovar/AnyPS5/blob/main/docs/TechnicalDebt.md#silent-stubs
boykopovar commented 2026-09-28 22:15:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-28T22:15:37Z.


Apparently, conflicts arose in docs/TechnicalDebt.md due to other mergers. Can you resolve them?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5879728201 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/68#issuecomment-5879728201). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-28T22:15:37Z. --- Apparently, conflicts arose in docs/TechnicalDebt.md due to other mergers. Can you resolve them?
github-actions[bot] commented 2026-09-29 16:10:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-09-29T16:10:38Z.


Progress report (83358be → a7b22a6)

📈 System libraries: 72.7% (+0.05%, +6 implemented functions)

✅ 6 implemented
Library Name
libScePlayerInvitationDialog scePlayerInvitationDialogClose
libScePlayerInvitationDialog scePlayerInvitationDialogGetStatus
libScePlayerInvitationDialog scePlayerInvitationDialogInitialize
libScePlayerInvitationDialog scePlayerInvitationDialogOpen
libScePlayerInvitationDialog scePlayerInvitationDialogTerminate
libScePlayerInvitationDialog scePlayerInvitationDialogUpdateStatus
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5894048703 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/68#issuecomment-5894048703). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-09-29T16:10:38Z. --- <!-- progress-report --> ### Progress report (83358be → a7b22a6) 📈 **System libraries**: 72.7% (+0.05%, +6 implemented functions) <details> <summary>✅ 6 implemented</summary> | Library | Name | | - | - | | libScePlayerInvitationDialog | `scePlayerInvitationDialogClose` | | libScePlayerInvitationDialog | `scePlayerInvitationDialogGetStatus` | | libScePlayerInvitationDialog | `scePlayerInvitationDialogInitialize` | | libScePlayerInvitationDialog | `scePlayerInvitationDialogOpen` | | libScePlayerInvitationDialog | `scePlayerInvitationDialogTerminate` | | libScePlayerInvitationDialog | `scePlayerInvitationDialogUpdateStatus` | </details>
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!68
No description provided.