Skip to content

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

Merged
adriadam10 merged 3 commits into
boykopovar:mainfrom
ErenYeager1836:fix/npauth-authorized-app-dialog-close-status
Oct 19, 2026
Merged

adriadam10 merged 3 commits into
boykopovar:mainfrom
ErenYeager1836:fix/npauth-authorized-app-dialog-close-status

Conversation

@ErenYeager1836

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the prx label Oct 18, 2026
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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

@wachi35676

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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).

@github-actions github-actions Bot added the docs label Oct 18, 2026
@adriadam10 adriadam10 self-assigned this Oct 19, 2026
ErenYeager1836 and others added 3 commits October 19, 2026 16:28
…g close

Transition dialog status to finished in sceNpAuthAuthorizedAppDialogClose, matching the behavior in libSceSigninDialog, and add unit test coverage in GuestNpAuthAuthorizedAppDialog.
@adriadam10
adriadam10 force-pushed the fix/npauth-authorized-app-dialog-close-status branch from 163755c to 542fcef Compare October 19, 2026 14:31
@adriadam10
adriadam10 merged commit f39852f into boykopovar:main Oct 19, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants