feat(libSceSigninDialog): implement sceSigninDialogGetStatus, GetResult and Close #1657

Closed
camezaro-intc wants to merge 1 commit from upstream-pr/1657 into main
camezaro-intc commented 2026-10-08 15:53:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by camezaro-intc on 2026-10-08T15:53:22Z.


What

Implement the remaining exports of libSceSigninDialog: sceSigninDialogGetStatus, sceSigninDialogGetResult, and sceSigninDialogClose (core/libs/prx/libSceSigninDialog/Export.cpp).

  • Completes the common dialog state machine lifecycle for libSceSigninDialog, following the established precedent of libSceLoginDialog.
  • sceSigninDialogGetStatus: returns the current atomic dialog status.
  • sceSigninDialogGetResult: verifies status is finished, rejects null or uninitialized calls with appropriate COMMON_DIALOG_ERROR_* codes, and returns COMMON_DIALOG_RESULT_USER_CANCELED (1) to prevent games prompting for sign-in from hanging or crashing.
  • sceSigninDialogClose: verifies the dialog was initialized and transitions cleanly.
  • Documented under ### Silent stubs in docs/dev/TechnicalDebt.md.
  • Added unit test suite core/libs/tests/GuestSigninDialog.cpp checking the full state transition sequence, argument validation, cancellation result, and rejection of invalid states.

Tested

  • Windows 11 x64, GCC 15.2.0 (MinGW64)
  • Built guest_signin_dialog_tests and ran CTest guest_signin_dialog (100% passed)
  • Validated with tools/check_test_registration.py (all tests registered)
  • Validated with tools/check_conventions.py --base upstream/main (passed with 0 findings)

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4789407579 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1657). Originally posted by [camezaro-intc](https://github.com/camezaro-intc) on 2026-10-08T15:53:22Z. --- ### What Implement the remaining exports of `libSceSigninDialog`: `sceSigninDialogGetStatus`, `sceSigninDialogGetResult`, and `sceSigninDialogClose` (`core/libs/prx/libSceSigninDialog/Export.cpp`). - Completes the common dialog state machine lifecycle for `libSceSigninDialog`, following the established precedent of `libSceLoginDialog`. - `sceSigninDialogGetStatus`: returns the current atomic dialog status. - `sceSigninDialogGetResult`: verifies status is finished, rejects null or uninitialized calls with appropriate `COMMON_DIALOG_ERROR_*` codes, and returns `COMMON_DIALOG_RESULT_USER_CANCELED` (1) to prevent games prompting for sign-in from hanging or crashing. - `sceSigninDialogClose`: verifies the dialog was initialized and transitions cleanly. - Documented under `### Silent stubs` in `docs/dev/TechnicalDebt.md`. - Added unit test suite `core/libs/tests/GuestSigninDialog.cpp` checking the full state transition sequence, argument validation, cancellation result, and rejection of invalid states. ### Tested - Windows 11 x64, GCC 15.2.0 (MinGW64) - Built `guest_signin_dialog_tests` and ran CTest `guest_signin_dialog` (100% passed) - Validated with `tools/check_test_registration.py` (all tests registered) - Validated with `tools/check_conventions.py --base upstream/main` (passed with 0 findings) ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-08 16:00:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T16:00:34Z.


Progress report (4b005b2 → 1b0327d)

📈 System libraries: 84.86% (+0.1%, +3 implemented functions)

✅ 3 implemented
Library Name
libSceSigninDialog sceSigninDialogClose
libSceSigninDialog sceSigninDialogGetResult
libSceSigninDialog sceSigninDialogGetStatus
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6063897660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1657#issuecomment-6063897660). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T16:00:34Z. --- <!-- progress-report --> ### Progress report (4b005b2 → 1b0327d) 📈 **System libraries**: 84.86% (+0.1%, +3 implemented functions) <details> <summary>✅ 3 implemented</summary> | Library | Name | | - | - | | libSceSigninDialog | `sceSigninDialogClose` | | libSceSigninDialog | `sceSigninDialogGetResult` | | libSceSigninDialog | `sceSigninDialogGetStatus` | </details>
oneandonlydean commented 2026-10-09 08:55:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:55:08Z.


Closing: no title is shown reaching the sign-in dialog on main, and a dialog that silently reports a cancel only goes in when it blocks one. Reopen with the title ID and the log line if you find it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077710891 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1657#issuecomment-6077710891). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T08:55:08Z. --- Closing: no title is shown reaching the sign-in dialog on main, and a dialog that silently reports a cancel only goes in when it blocks one. Reopen with the title ID and the log line if you find it.

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