feat(signindialog): implement the libSceSigninDialog state machine #2346

Closed
Darkeox34 wants to merge 1 commit from upstream-pr/2346 into main
Darkeox34 commented 2026-10-09 16:06:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Darkeox34 on 2026-10-09T16:06:28Z.


What

Completes 100% export coverage for libSceSigninDialog (7/7 functions):

  • Implements sceSigninDialogGetStatus, sceSigninDialogClose, and sceSigninDialogGetResult following the common-dialog state machine (NONE -> INITIALIZED -> RUNNING -> FINISHED), mirroring
    libSceLoginDialog.
  • sceSigninDialogGetResult reports COMMON_DIALOG_RESULT_USER_CANCELED (1) once finished, validating null pointer and uninitialized / unfinished states.
  • sceSigninDialogClose succeeds when initialized and validates COMMON_DIALOG_ERROR_NOT_INITIALIZED.
  • Adds core/libs/prx/libSceSigninDialog/CMakeLists.txt and a complete guest unit test suite in core/libs/tests/GuestSigninDialog.cpp.
  • Records libSceSigninDialog in the silent stubs section in docs/dev/TechnicalDebt.md.

Tested

  • Validated with python tools/check_conventions.py --base upstream/main.
  • Verified 100% export coverage with python tools/progress.py.
  • Covered by guest unit test suite GuestSigninDialog.cpp driving initialization, open, update/get status, get result, close, terminate, and argument errors.

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:4802898712 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2346). Originally posted by [Darkeox34](https://github.com/Darkeox34) on 2026-10-09T16:06:28Z. --- ### What Completes 100% export coverage for `libSceSigninDialog` (7/7 functions): - Implements `sceSigninDialogGetStatus`, `sceSigninDialogClose`, and `sceSigninDialogGetResult` following the common-dialog state machine (`NONE` -> `INITIALIZED` -> `RUNNING` -> `FINISHED`), mirroring `libSceLoginDialog`. - `sceSigninDialogGetResult` reports `COMMON_DIALOG_RESULT_USER_CANCELED` (1) once finished, validating null pointer and uninitialized / unfinished states. - `sceSigninDialogClose` succeeds when initialized and validates `COMMON_DIALOG_ERROR_NOT_INITIALIZED`. - Adds `core/libs/prx/libSceSigninDialog/CMakeLists.txt` and a complete guest unit test suite in `core/libs/tests/GuestSigninDialog.cpp`. - Records `libSceSigninDialog` in the silent stubs section in `docs/dev/TechnicalDebt.md`. ### Tested - Validated with `python tools/check_conventions.py --base upstream/main`. - Verified 100% export coverage with `python tools/progress.py`. - Covered by guest unit test suite `GuestSigninDialog.cpp` driving initialization, open, update/get status, get result, close, terminate, and argument errors. ### 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](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
Kikoarl commented 2026-10-09 17:52:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-09T17:52:42Z.


Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at bafdd521:

  • Build: Built cleanly in RAM (/tmp/anyps5_build) with zero warnings/errors.
  • Conventions: python3 tools/check_conventions.py --base origin/main --head HEAD -> PASS (0 errors).
  • Verification: Verified GuestSigninDialog.cpp state machine tests. All transition states cleanly handled following SCE PRX specifications without silent hangs.

LGTM!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6086305331 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2346#issuecomment-6086305331). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-09T17:52:42Z. --- Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at `bafdd521`: - **Build**: Built cleanly in RAM (`/tmp/anyps5_build`) with zero warnings/errors. - **Conventions**: `python3 tools/check_conventions.py --base origin/main --head HEAD` -> **PASS (0 errors)**. - **Verification**: Verified `GuestSigninDialog.cpp` state machine tests. All transition states cleanly handled following SCE PRX specifications without silent hangs. LGTM!
popcoder565 commented 2026-10-09 19:04:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:04:10Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head bafdd521, merged onto main f8c2f072 in one build with 9 other PRs that had no Windows run.

  • This PR's tests pass: guest_signin_dialog.
  • Full ctest in that build: 512 of 513. The one failure is agc_driver_depth_fast_clear_submit from #2325, which fails intermittently on its own too. The test comes from #425, where I reported it.

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6087425298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2346#issuecomment-6087425298). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T19:04:10Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `bafdd521`, merged onto `main` f8c2f072 in one build with 9 other PRs that had no Windows run. - This PR's tests pass: `guest_signin_dialog`. - Full ctest in that build: 512 of 513. The one failure is `agc_driver_depth_fast_clear_submit` from #2325, which fails intermittently on its own too. The test comes from #425, where I reported it. No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
oneandonlydean commented 2026-10-09 20:12:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:12:13Z.


Closing for the same reason as #2309: no title is shown reaching sceSigninDialogGetResult, GetStatus or Close on main, and a silent dialog stub needs a title it unblocks. Please reopen with the title ID and the log line if you find one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088474753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2346#issuecomment-6088474753). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T20:12:13Z. --- Closing for the same reason as #2309: no title is shown reaching `sceSigninDialogGetResult`, `GetStatus` or `Close` on main, and a silent dialog stub needs a title it unblocks. Please reopen with the title ID and the log line if you find one.

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