fix(libSceNpAuthAuthorizedAppDialog): transition to finished on dialog close #7397

Merged
ErenYeager1836 merged 3 commits from upstream-pr/7397 into main 2026-10-19 19:36:12 +00:00
ErenYeager1836 commented 2026-10-18 04:37:32 +00:00 (Migrated from github.com)

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


What

Transitions dialog status to COMMON_DIALOG_STATUS_FINISHED in sceNpAuthAuthorizedAppDialogClose.

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_np_auth_authorized_app_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: NpAuthAuthorizedAppDialog close lifecycle
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4906399924 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7397). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-18T04:37:32Z. --- ### What Transitions dialog status to `COMMON_DIALOG_STATUS_FINISHED` in `sceNpAuthAuthorizedAppDialogClose`. 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_np_auth_authorized_app_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: NpAuthAuthorizedAppDialog close lifecycle - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-18 04:48:42 +00:00 (Migrated from github.com)

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


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/GuestNpAuthAuthorizedAppDialog.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245802599 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7397#issuecomment-6245802599). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T04:48:42Z. --- <!-- pr-overlap --> 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/GuestNpAuthAuthorizedAppDialog.cpp` |
wachi35676 commented 2026-10-18 12:05:56 +00:00 (Migrated from github.com)

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


Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto main 3e3e8b905: guest_np_auth_authorized_app_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:6249708550 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7397#issuecomment-6249708550). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-18T12:05:56Z. --- Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto `main` `3e3e8b905`: `guest_np_auth_authorized_app_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:21:28 +00:00 (Migrated from github.com)

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


Thanks for the review, @wachi35676! Added a note in docs/dev/debt/libSceNpAuthAuthorizedAppDialog.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:6249852413 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7397#issuecomment-6249852413). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-18T12:21:28Z. --- Thanks for the review, @wachi35676! Added a note in docs/dev/debt/libSceNpAuthAuthorizedAppDialog.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:37:36 +00:00 (Migrated from github.com)

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


Checked against sceSigninDialogClose and sceNetCtlApDialogClose (same transition); the new test pins FINISHED and the result after Close and fails without the change. The second commit added a BOM to the debt file and rewrote the existing entry; I restored that line and kept the new Close note, which now also says MsgDialog/SaveDataDialog/ErrorDialog return an error for Close without Open (unverified for this module). Rebased, scoped ctest green; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6275660490 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7397#issuecomment-6275660490). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T19:37:36Z. --- Checked against `sceSigninDialogClose` and `sceNetCtlApDialogClose` (same transition); the new test pins FINISHED and the result after `Close` and fails without the change. The second commit added a BOM to the debt file and rewrote the existing entry; I restored that line and kept the new Close note, which now also says MsgDialog/SaveDataDialog/ErrorDialog return an error for Close without Open (unverified for this module). Rebased, scoped ctest green; 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!7397
No description provided.