feat(libSceMsgDialog): show user message dialogs as host message boxes with ANYPS5_MSG_DIALOG_HOST #17706
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17706"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-09T11:15:00Z.
What
Adds
ANYPS5_MSG_DIALOG_HOST=1. With it, each user message dialog thatsceMsgDialogOpenopens (a text and a button type) is shown as a native host message box throughSDL_ShowMessageBox, instead of the in-game dialog. The call waits until a button is pressed, then reports that button;sceMsgDialogGetStatusreports the dialog as finished at once. This follows the host confirmation that libSceSystemService already uses, which also callsSDL_ShowMessageBoxon the calling thread.Decisions taken here, without an owner's answer:
1keeps the in-game dialog.Not covered: progress bars, system messages and user messages with other button types keep the in-game dialog. Limits are in the debt entry of libSceMsgDialog.
Commits: the tests (which fail before the module exists), the pure switch, labels and button mapping, the SDL call, the wiring into
sceMsgDialogOpen, the environment row, the debt entry, and a CMake path fix.Tested
Linux, built with
msg_dialog_host_box_tests(new),guest_msg_dialogandmsg_dialog_request, and thelibSceMsgDialoglibrary; ctest passes 3/3.1,0, other values, Apple), the ASCII labels, and the button mapping (in range, out of range, closed with no choice).msg_dialog_host_box_testsfails withthe second button is not index 1. Restored, it passes.sceMsgDialogOpenwiring is checked only by the existing guest test, which runs with the switch unset.GPUs tested: n/a, no graphics code.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)