feat(libSceErrorDialog): show error dialogs as host message boxes with ANYPS5_ERROR_DIALOG_HOST #17719
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17719"
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-09T12:30:58Z.
What
Extends the host message box of #17706 to error dialogs. With
ANYPS5_ERROR_DIALOG_HOST=1, each error dialog thatsceErrorDialogOpenopens is shown as a native host message box with the error's text, instead of the in-game dialog. The call waits until a button is pressed. If the box cannot be shown, the in-game dialog is used. Off by default; Apple builds always keep the in-game dialog.The host box moves from libSceMsgDialog to libSceIme, next to the modal dialog it stands in for, and its namespace becomes
HostBox. libSceErrorDialog already links libSceIme, so it needs no new link.This PR is stacked on #17706: its first commits are that PR's. Merge #17706 first.
Commits: the message dialog host box split into moves (header, source and test to libSceIme), the rename, the error dialog include and switch, its answer path, its fallback log, the two docs rows, and the debt link fixes that the naming rule required.
Tested
Linux, built with
ime_host_message_box_tests(moved),guest_msg_dialog,guest_error_dialog,msg_dialog_requestand thelibSceMsgDialogandlibSceErrorDialoglibraries; ctest passes 4/4.guest_error_dialogruns 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)Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:58:56Z.
Review: COMMENTED
The opt-in synchronous host popup holds
g_lockacrossSDL_ShowMessageBox. WhilesceErrorDialogOpenwaits for a button, that also blocksGetStatus,UpdateStatus,CloseandTerminateon every guest thread. Can the synchronous wait release the state mutex and publish its result only if the same dialog is still current? That would let the lifecycle calls keep returning while the host window is open.Source review at
9b00c4afee. The popup path is unverified in this review.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.