feat(libSceMsgDialog.native): answer user messages from the host box with ANYPS5_MSG_DIALOG_HOST #17729

Open
MarcZX10 wants to merge 19 commits from upstream-pr/17729 into main
MarcZX10 commented 2026-11-09 13:12:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T13:12:16Z.


What

Extends the user message box to the native variant, libSceMsgDialog.native. With ANYPS5_MSG_DIALOG_HOST=1 (the same switch as libSceMsgDialog, not on Apple builds), sceMsgDialogOpen of libSceMsgDialog.native shows the text in the host message box and answers with the button picked there. If the box cannot be shown, the in-game dialog is used, as before.

Both modules now give the same answer for the same switch. The shared code (the box, its switch and its button mapping) is in libSceIme, so this module only adds the call.

Notification-style PSN notices are not in this PR: they are not blocking, and the desktop notices of ANYPS5_HOST_NOTIFY already cover them.

This PR is stacked on #17719, which is stacked on #17706. Merge those first.

Commits: the parameter parsed once (no behaviour change), the includes and the platform switch, the host answer path, the environment row, and the debt note.

Tested

Linux, built with guest_msg_dialog_native_tests, guest_msg_dialog, guest_error_dialog, ime_host_message_box and the libSceMsgDialog.native library; ctest passes 4/4.

  • Not tested: the box itself. No display was used, so no box was shown and no button was pressed. The guest tests run with the switch unset.

GPUs tested: n/a, no graphics code.

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: #17719
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a, no AGC or shader change
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5224425814 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17729). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-09T13:12:16Z. --- ### What Extends the user message box to the native variant, libSceMsgDialog.native. With `ANYPS5_MSG_DIALOG_HOST=1` (the same switch as libSceMsgDialog, not on Apple builds), `sceMsgDialogOpen` of libSceMsgDialog.native shows the text in the host message box and answers with the button picked there. If the box cannot be shown, the in-game dialog is used, as before. Both modules now give the same answer for the same switch. The shared code (the box, its switch and its button mapping) is in libSceIme, so this module only adds the call. Notification-style PSN notices are not in this PR: they are not blocking, and the desktop notices of `ANYPS5_HOST_NOTIFY` already cover them. This PR is stacked on #17719, which is stacked on #17706. Merge those first. Commits: the parameter parsed once (no behaviour change), the includes and the platform switch, the host answer path, the environment row, and the debt note. ### Tested Linux, built with `guest_msg_dialog_native_tests`, `guest_msg_dialog`, `guest_error_dialog`, `ime_host_message_box` and the `libSceMsgDialog.native` library; ctest passes 4/4. - Not tested: the box itself. No display was used, so no box was shown and no button was pressed. The guest tests run with the switch unset. GPUs tested: n/a, no graphics code. ### 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: #17719 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a, no AGC or shader change - [x] AI-assisted: yes
ligmaSec commented 2026-12-03 17:04:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:04:58Z.

Review: COMMENTED


The current head and the PR description disagree about where the shared host box lives. This head adds the native module's dependency on libSceMsgDialog and calls ShowHostMessageBox_nid_postfix from it. The description says it calls the shared implementation in libSceIme after #17719. Please update the stack or the test evidence to match the actual head so the two libraries are tested against the intended provider.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6174552075 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17729#pullrequestreview-6174552075). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T17:04:58Z. **Review:** COMMENTED --- The current head and the PR description disagree about where the shared host box lives. This head adds the native module's dependency on `libSceMsgDialog` and calls `ShowHostMessageBox_nid_postfix` from it. The description says it calls the shared implementation in `libSceIme` after #17719. Please update the stack or the test evidence to match the actual head so the two libraries are tested against the intended provider. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/17729:upstream-pr/17729'
git switch 'upstream-pr/17729'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/17729'
git switch 'upstream-pr/17729'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/17729'
git switch 'upstream-pr/17729'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/17729'
git switch 'main'
git merge --squash 'upstream-pr/17729'
git switch 'main'
git merge --ff-only 'upstream-pr/17729'
git switch 'main'
git merge 'upstream-pr/17729'
git push origin 'main'
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!17729
No description provided.