feat(libSceNetCtlApDialog): implement common dialog state machine #4098

Closed
jagrat04 wants to merge 1 commit from upstream-pr/4098 into main
jagrat04 commented 2026-10-11 23:11:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-11T23:11:55Z.


What

Implement the common dialog state machine for libSceNetCtlApDialog:

  • sceNetCtlApDialogInitialize: sets status to Initialized, rejecting re-initialization with COMMON_DIALOG_ERROR_ALREADY_INITIALIZED.
  • sceNetCtlApDialogOpen: checks param, sets status to Finished.
  • sceNetCtlApDialogUpdateStatus: returns dialog status.
  • sceNetCtlApDialogGetResult: returns COMMON_DIALOG_RESULT_USER_CANCELED (1) once finished.
  • sceNetCtlApDialogClose: succeeds if initialized.
  • sceNetCtlApDialogTerminate: resets status to None.
  • Added guest test in core/libs/tests/GuestNetCtlApDialog.cpp.
  • Documented in docs/dev/TechnicalDebt.md.

Tested

  • python tools/check_conventions.py passed with 0 violations.

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:4823103291 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4098). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-11T23:11:55Z. --- ### What Implement the common dialog state machine for libSceNetCtlApDialog: - sceNetCtlApDialogInitialize: sets status to Initialized, rejecting re-initialization with COMMON_DIALOG_ERROR_ALREADY_INITIALIZED. - sceNetCtlApDialogOpen: checks param, sets status to Finished. - sceNetCtlApDialogUpdateStatus: returns dialog status. - sceNetCtlApDialogGetResult: returns COMMON_DIALOG_RESULT_USER_CANCELED (1) once finished. - sceNetCtlApDialogClose: succeeds if initialized. - sceNetCtlApDialogTerminate: resets status to None. - Added guest test in core/libs/tests/GuestNetCtlApDialog.cpp. - Documented in docs/dev/TechnicalDebt.md. ### Tested - python tools/check_conventions.py passed with 0 violations. ### 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 - [x] Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt - [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-11 23:13:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T23:13:03Z.


Progress report (bab7b32 → 268124a)

📈 System libraries: 86.65% (+0.18%, +6 implemented functions)

✅ 6 implemented
Library Name
libSceNetCtlApDialog sceNetCtlApDialogClose
libSceNetCtlApDialog sceNetCtlApDialogGetResult
libSceNetCtlApDialog sceNetCtlApDialogInitialize
libSceNetCtlApDialog sceNetCtlApDialogOpen
libSceNetCtlApDialog sceNetCtlApDialogTerminate
libSceNetCtlApDialog sceNetCtlApDialogUpdateStatus
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114969587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4098#issuecomment-6114969587). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T23:13:03Z. --- <!-- progress-report --> ### Progress report (bab7b32 → 268124a) 📈 **System libraries**: 86.65% (+0.18%, +6 implemented functions) <details> <summary>✅ 6 implemented</summary> | Library | Name | | - | - | | libSceNetCtlApDialog | `sceNetCtlApDialogClose` | | libSceNetCtlApDialog | `sceNetCtlApDialogGetResult` | | libSceNetCtlApDialog | `sceNetCtlApDialogInitialize` | | libSceNetCtlApDialog | `sceNetCtlApDialogOpen` | | libSceNetCtlApDialog | `sceNetCtlApDialogTerminate` | | libSceNetCtlApDialog | `sceNetCtlApDialogUpdateStatus` | </details>
github-actions[bot] commented 2026-10-11 23:30:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T23:30: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
#4118 docs/dev/TechnicalDebt.md L20
#4218 docs/dev/TechnicalDebt.md L20
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115126938 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4098#issuecomment-6115126938). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T23:30: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 | |---|---|---|---| | #4118 | `docs/dev/TechnicalDebt.md` [L20](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/docs/dev/TechnicalDebt.md#L20) | | | | #4218 | `docs/dev/TechnicalDebt.md` [L20](https://github.com/boykopovar/AnyPS5/blob/8c4a295ffb7bc471a5bcee2287fd38e499d003a2/docs/dev/TechnicalDebt.md#L20) | | |
oneandonlydean commented 2026-10-12 08:28:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:28:04Z.


Closing, same as #4089: no title is shown to open the AP dialog, and a silent dialog goes in when a title is blocked by it. Please reopen with the title ID and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6120576813 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4098#issuecomment-6120576813). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T08:28:04Z. --- Closing, same as #4089: no title is shown to open the AP dialog, and a silent dialog goes in when a title is blocked by it. Please reopen with the title ID and the log line.

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