fix(libSceVrSetupDialog): finish dialog on close #7399

Merged
MarcZX10 merged 1 commit from upstream-pr/7399 into main 2026-10-19 19:36:07 +00:00
MarcZX10 commented 2026-10-18 04:41:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T04:41:27Z.


What

Set the VR Setup dialog status to COMMON_DIALOG_STATUS_FINISHED when sceVrSetupDialogClose succeeds. Add regression assertions for FINISHED status and the canceled result after closing.

Tested

  • Linux: ninja -C /tmp/build-6628-current guest_vr_setup_dialog_tests built and linked the target.
  • CTest: guest_vr_setup_dialog aborts in the emulator startup CPU-feature guard on this host (missing LZCNT, BMI1, BMI2, MOVBE, AVX2, and FMA), before assertions run.
  • python3 tools/check_conventions.py --base upstream/main — passed.
  • Manual overlap review: #6044 only relocates GuestVrSetupDialog.cpp under tests/services and updates CMake registration; #6361 adds separate exports and does not change sceVrSetupDialogClose. If #6044 lands first, the test path will need a mechanical rebase adjustment.

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:4906417530 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7399). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T04:41:27Z. --- ### What Set the VR Setup dialog status to `COMMON_DIALOG_STATUS_FINISHED` when `sceVrSetupDialogClose` succeeds. Add regression assertions for FINISHED status and the canceled result after closing. ### Tested - Linux: `ninja -C /tmp/build-6628-current guest_vr_setup_dialog_tests` built and linked the target. - CTest: `guest_vr_setup_dialog` aborts in the emulator startup CPU-feature guard on this host (missing LZCNT, BMI1, BMI2, MOVBE, AVX2, and FMA), before assertions run. - `python3 tools/check_conventions.py --base upstream/main` — passed. - Manual overlap review: #6044 only relocates `GuestVrSetupDialog.cpp` under `tests/services` and updates CMake registration; #6361 adds separate exports and does not change `sceVrSetupDialogClose`. If #6044 lands first, the test path will need a mechanical rebase adjustment. ### 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 04:56:15 +00:00 (Migrated from github.com)

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


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/GuestVrSetupDialog.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245858529 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7399#issuecomment-6245858529). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T04:56:15Z. --- <!-- 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/GuestVrSetupDialog.cpp` |
jotitadev commented 2026-10-18 10:09:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T10:09:52Z.

Review: COMMENTED


Linux run, since the description notes the test stops at the host CPU guard before its assertions.

Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, full build.
Head 1bb663f68 merged onto main 9caecfd2d (clean merge).

  • guest_vr_setup_dialog passes, as do the other common dialog tests (ctest -R dialog, 15 tests).
  • GuestVrSetupDialog.cpp only, on main: fails at Require(sceVrSetupDialogUpdateStatus() == kStatusFinished) after sceVrSetupDialogClose(), so the new lines cover the change.
  • Non-GPU suite (ctest -E "^agc|gpu|vulkan|video_out"): 712/712, same as main.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5562495946 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7399#pullrequestreview-5562495946). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-18T10:09:52Z. **Review:** COMMENTED --- Linux run, since the description notes the test stops at the host CPU guard before its assertions. Machine: Linux x86_64, i7-8700, Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, full build. Head `1bb663f68` merged onto `main` `9caecfd2d` (clean merge). - `guest_vr_setup_dialog` passes, as do the other common dialog tests (`ctest -R dialog`, 15 tests). - `GuestVrSetupDialog.cpp` only, on `main`: fails at `Require(sceVrSetupDialogUpdateStatus() == kStatusFinished)` after `sceVrSetupDialogClose()`, so the new lines cover the change. - Non-GPU suite (`ctest -E "^agc|gpu|vulkan|video_out"`): 712/712, same as `main`. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-18 12:02:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T12:02:46Z.


Thanks for checking both states. That confirms the distinction I wanted the regression to cover: the test-only change fails on current main after sceVrSetupDialogClose(), while the complete PR passes in your Linux run. The broader 15 dialog tests and 712 non-GPU tests passing are useful context too.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249678865 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7399#issuecomment-6249678865). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T12:02:46Z. --- Thanks for checking both states. That confirms the distinction I wanted the regression to cover: the test-only change fails on current main after `sceVrSetupDialogClose()`, while the complete PR passes in your Linux run. The broader 15 dialog tests and 712 non-GPU tests passing are useful context too.
adriadam10 commented 2026-10-19 19:37:41 +00:00 (Migrated from github.com)

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


Checked against the sibling common dialogs (Signin, PlayerSelection, PlayGo set FINISHED on Close). The new assertions fail on main and pass with the change (confirmed by @jotitadev on Linux); merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6275661961 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7399#issuecomment-6275661961). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T19:37:41Z. --- Checked against the sibling common dialogs (Signin, PlayerSelection, PlayGo set FINISHED on Close). The new assertions fail on main and pass with the change (confirmed by @jotitadev on Linux); 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!7399
No description provided.