fix(libSceLoginDialog): transition to finished on dialog close #7398

Merged
ErenYeager1836 merged 3 commits from upstream-pr/7398 into main 2026-10-19 19:38:19 +00:00
ErenYeager1836 commented 2026-10-18 04:39:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-18T04:39:46Z.


What

Transitions dialog status to COMMON_DIALOG_STATUS_FINISHED in sceLoginDialogClose.

Matches the behavior in libSceSigninDialog and libSceNetCtlApDialog, allowing caller code to observe completion after explicit close requests.

Tested

  • python tools/check_conventions.py --base upstream/main passes cleanly.
  • guest_login_dialog unit test suite passes locally with CTest (100% tests passed out of 1).

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
  • Unblocks: LoginDialog close lifecycle
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4906409927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7398). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-18T04:39:46Z. --- ### What Transitions dialog status to `COMMON_DIALOG_STATUS_FINISHED` in `sceLoginDialogClose`. Matches the behavior in `libSceSigninDialog` and `libSceNetCtlApDialog`, allowing caller code to observe completion after explicit close requests. ### Tested - `python tools/check_conventions.py --base upstream/main` passes cleanly. - `guest_login_dialog` unit test suite passes locally with CTest (`100% tests passed out of 1`). ### 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] Unblocks: LoginDialog close lifecycle - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-18 04:48:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T04:48:43Z.


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 8060 docs/dev/debt/libSceLoginDialog.md L5

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestLoginDialog.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245802725 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7398#issuecomment-6245802725). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T04:48:43Z. --- <!-- 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 8060](https://www.github.com/boykopovar/AnyPS5/pull/8060) | `docs/dev/debt/libSceLoginDialog.md` [L5](https://github.com/boykopovar/AnyPS5/blob/e004d03ceb460c5b802b7905a8a88a2a3db26b46/docs/dev/debt/libSceLoginDialog.md#L5) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestLoginDialog.cpp` |
wachi35676 commented 2026-10-18 12:05:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-18T12:05:54Z.


Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto main 3e3e8b905: guest_login_dialog passes, and fails on main with only the test change (exit 0xc0000409).

The same question as on #7478 applies here. Open already finishes at once, so the only case that changes is Close with no Open before it. For that case MsgDialog.native, SaveDataDialog.native and ErrorDialog return NOT_RUNNING or INVALID_STATE, following shadPS4's sceMsgDialogClose. Please cite a source, or note the choice as unverified in the module's debt entry.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249708183 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7398#issuecomment-6249708183). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-18T12:05:54Z. --- Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto `main` `3e3e8b905`: `guest_login_dialog` passes, and fails on `main` with only the test change (exit `0xc0000409`). The same question as on #7478 applies here. `Open` already finishes at once, so the only case that changes is `Close` with no `Open` before it. For that case MsgDialog.native, SaveDataDialog.native and ErrorDialog return NOT_RUNNING or INVALID_STATE, following shadPS4's `sceMsgDialogClose`. Please cite a source, or note the choice as unverified in the module's debt entry. AI-assisted: yes (Claude Code); results above were run on this machine.
ErenYeager1836 commented 2026-10-18 12:20:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-18T12:20:45Z.


Thanks for the review, @wachi35676! Added a note in docs/dev/debt/libSceLoginDialog.md documenting that transitioning to FINISHED on Close before Open follows the Signin/NetCtlAp/PlayerSelection convention and remains unverified on real hardware. Testing was verified under MinGW-w64 GCC (WinLibs).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249845721 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7398#issuecomment-6249845721). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-18T12:20:45Z. --- Thanks for the review, @wachi35676! Added a note in docs/dev/debt/libSceLoginDialog.md documenting that transitioning to FINISHED on Close before Open follows the Signin/NetCtlAp/PlayerSelection convention and remains unverified on real hardware. Testing was verified under MinGW-w64 GCC (WinLibs).
adriadam10 commented 2026-10-19 19:40:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T19:40:29Z.


Checked sceLoginDialogClose against KytyPS5's LoginDialogClose (same: NOT_INITIALIZED when idle, otherwise FINISHED) and the new test (fails on main, pins status and result). Confirmed by @wachi35676 on Windows/MinGW. Added a commit removing the BOM the PR put at the start of docs/dev/debt/libSceLoginDialog.md; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6275714012 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7398#issuecomment-6275714012). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T19:40:29Z. --- Checked `sceLoginDialogClose` against KytyPS5's `LoginDialogClose` (same: NOT_INITIALIZED when idle, otherwise FINISHED) and the new test (fails on main, pins status and result). Confirmed by @wachi35676 on Windows/MinGW. Added a commit removing the BOM the PR put at the start of `docs/dev/debt/libSceLoginDialog.md`; merged.
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!7398
No description provided.