fix(libSceCdlgPlayerReview): transition to finished on dialog close #7478

Merged
ErenYeager1836 merged 3 commits from upstream-pr/7478 into main 2026-10-19 22:18:57 +00:00
ErenYeager1836 commented 2026-10-18 08:59:46 +00:00 (Migrated from github.com)

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


What

Transition g_status to COMMON_DIALOG_STATUS_FINISHED in scePlayerReviewDialogClose when called from an initialized or running dialog. Previously scePlayerReviewDialogClose returned 0 without updating g_status, leaving it in the initialized state and preventing subsequent scePlayerReviewDialogGetResult calls from retrieving the user canceled result. Also update GuestPlayerReviewDialog to verify the state transition and result retrieval upon close.

Tested

  • Windows 11, MSVC, GuestPlayerReviewDialog passing.
  • Verified with python tools/check_conventions.py --base upstream/main.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4907772793 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7478). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-18T08:59:46Z. --- ### What Transition `g_status` to `COMMON_DIALOG_STATUS_FINISHED` in `scePlayerReviewDialogClose` when called from an initialized or running dialog. Previously `scePlayerReviewDialogClose` returned 0 without updating `g_status`, leaving it in the initialized state and preventing subsequent `scePlayerReviewDialogGetResult` calls from retrieving the user canceled result. Also update `GuestPlayerReviewDialog` to verify the state transition and result retrieval upon close. ### Tested - Windows 11, MSVC, `GuestPlayerReviewDialog` passing. - Verified with `python tools/check_conventions.py --base upstream/main`. ### 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 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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-18 09:11:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T09:11:57Z.


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/GuestPlayerReviewDialog.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248085472 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7478#issuecomment-6248085472). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T09:11:57Z. --- <!-- 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/GuestPlayerReviewDialog.cpp` |
wachi35676 commented 2026-10-18 12:05:49 +00:00 (Migrated from github.com)

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


Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto main 3e3e8b905. guest_player_review_dialog passes. With only the test change on main, it fails at the new GetStatus() == FINISHED check (exit 0xc0000409).

On main, scePlayerReviewDialogOpen already moves to FINISHED, so this change only affects Close on a dialog that was initialized but never opened, which now reports a canceled result. The tree has two conventions for that case:

  • Return an error: MsgDialog.native, SaveDataDialog.native and ErrorDialog return NOT_RUNNING or INVALID_STATE, following shadPS4's sceMsgDialogClose.
  • Finish anyway, as this PR does: Signin, NetCtlAp and PlayerSelection.

The same applies to #7479, #7398 and #7397. Is there a source or a title for choosing the second convention? If not, a line in each module's debt file saying it is unverified would help.

Minor: the description says MSVC, but BUILD.md lists only MinGW-w64 GCC 15.2.0 for Windows. Which toolchain was it?

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249707478 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7478#issuecomment-6249707478). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-18T12:05:49Z. --- Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto `main` `3e3e8b905`. `guest_player_review_dialog` passes. With only the test change on `main`, it fails at the new `GetStatus() == FINISHED` check (exit `0xc0000409`). On `main`, `scePlayerReviewDialogOpen` already moves to FINISHED, so this change only affects `Close` on a dialog that was initialized but never opened, which now reports a canceled result. The tree has two conventions for that case: - **Return an error:** MsgDialog.native, SaveDataDialog.native and ErrorDialog return NOT_RUNNING or INVALID_STATE, following shadPS4's `sceMsgDialogClose`. - **Finish anyway, as this PR does:** Signin, NetCtlAp and PlayerSelection. The same applies to #7479, #7398 and #7397. Is there a source or a title for choosing the second convention? If not, a line in each module's debt file saying it is unverified would help. Minor: the description says MSVC, but BUILD.md lists only MinGW-w64 GCC 15.2.0 for Windows. Which toolchain was it? AI-assisted: yes (Claude Code); results above were run on this machine.
ErenYeager1836 commented 2026-10-18 12:19:16 +00:00 (Migrated from github.com)

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


Thanks for the feedback, @wachi35676! Added an entry in docs/dev/debt/libSceCdlgPlayerReview.md documenting that transitioning to FINISHED on Close before Open follows the Signin/NetCtlAp/PlayerSelection convention and is unverified on real hardware. Also, regarding the toolchain note: tests were run locally under MinGW-w64 GCC (WinLibs), matching BUILD.md.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249832037 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7478#issuecomment-6249832037). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-18T12:19:16Z. --- Thanks for the feedback, @wachi35676! Added an entry in docs/dev/debt/libSceCdlgPlayerReview.md documenting that transitioning to FINISHED on Close before Open follows the Signin/NetCtlAp/PlayerSelection convention and is unverified on real hardware. Also, regarding the toolchain note: tests were run locally under MinGW-w64 GCC (WinLibs), matching BUILD.md.
adriadam10 commented 2026-10-19 22:21:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T22:21:21Z.


Checked the close transition and the test (it fails without the change, as @wachi35676 confirmed). Pushed one commit: the docs commit had rewritten docs/dev/debt/libSceCdlgPlayerReview.md with a BOM and stripped the backticks from existing lines, so I restored the file from main and kept only the new line (under "Unknown function info", marked unverified). ctest for the touched libraries passes; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278649375 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7478#issuecomment-6278649375). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T22:21:21Z. --- Checked the close transition and the test (it fails without the change, as @wachi35676 confirmed). Pushed one commit: the docs commit had rewritten `docs/dev/debt/libSceCdlgPlayerReview.md` with a BOM and stripped the backticks from existing lines, so I restored the file from main and kept only the new line (under "Unknown function info", marked unverified). ctest for the touched libraries passes; 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!7478
No description provided.