dialog: print the text of user message dialogs #2287
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2287
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2287"
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?
@Nawid3333 on GitHub · 2026-11-15 15:24 UTC · original
Nawid3333:dialog/msg-dialog-user-text→main· +84 −0 · 3 files · 1 commits · openProblem
Kyty does not draw message dialogs, so when a game reports an error through a user message dialog (
MsgDialogOpenwith mode 1), nobody sees the text. The game then waits behind the dialog, and the stop looks like an emulator hang. Ghost of Yōtei (PPSA26344) started without its base-game entitlement does this: it opens such a dialog and stays on its loading spinner (#2204).Change
MsgDialogOpen: for a user message dialog with a message, it printsMessage dialog: <text>to the console and the log. Other modes and a missing message print nothing. The dialog status and result are unchanged.UserMessageTextreads the text throughMsgDialogUserMessageParam(button type, message pointer, buttons pointer, 24 reserved bytes; 48 bytes, checked with astatic_assertlike the file's other dialog structs).Tests
save_data_dialog_tests,TestMsgDialogUserText: a user message, the progress bar mode with the same message parameter set, a null message, and a null user message parameter. The test's own copy of the guest structs asserts the offsets (mode0x38,user_msg_param0x40,msg8).UserMessageTextreturns no text, and when it ignores the mode.save_data_dialogpasses in the Windows job (the Linux and macOS jobs do not run this suite).In a game
Ghost of Yōtei 01.008.000, Windows 11, RTX 5070, tested by @yuca-a in #2204 with a fork build that has this change (its
dialog.cppdiffers from this PR only by thestatic_assert). Started without--addcont GHOST2BASE000000, the console shows:With
--addcontthe same build gets past this point to the brightness and difficulty screens (comment).Written with Claude Code (AI): Claude Code wrote the change and the test and ran them; Claude (Opus) reviewed the diff.
Kyty does not draw message dialogs, so a game's error message stayed invisible. Ghost of Yotei opens one ("Unable to launch: missing base entitlement") and then waits behind its loading spinner. Co-Authored-By: Claude Opus 5.5 <[email protected]>@coderabbitai[bot] on GitHub · 2026-11-15 15:28 UTC · original · edited 2026-11-17 23:25 UTC
Walkthrough
The dialog library adds a user-message parameter layout and a function that returns the message text when the dialog uses user-message mode and the required pointers are non-null.
MsgDialogOpenwrites non-empty extracted text to the console and log. Tests check parameter offsets and verify the extraction results for user-message mode and null or progress-bar cases.Suggested reviewers:
nmzikChange: Feature
Merge Risk:
Minimal · previous review
b5e7aThe change prints the text of user message dialogs to the console and log, and leaves dialog status and results unchanged. No merge-blocking risk was identified.
Pre-merge checks:
4
Full details: Description check
Explanation
The description explains the problem (message dialogs are not drawn, so the game appears to hang), the change (console and log output for user message dialogs, the MsgDialogUserMessageParam read, and a static_assert), the added test, and a real-game validation. It directly relates to the changeset.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
@coderabbitai[bot] on GitHub · 2026-11-15 15:28 UTC · original · reviewed
efb47189-a3f7-4fbe-822b-169d0b9b07c9Reviewing files that changed from the base of the PR and between
3acafb358fand b5e7ad964f4027a3fcd21890a95adbb6961a5770.src/libs/dialog.cppsrc/libs/dialog.htests/SaveDataDialogTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@Nawid3333 on GitHub · 2026-11-15 15:53 UTC · original
@coderabbitai The print itself is the single
Log::WriteToConsoleAndLogcall on the textUserMessageTextreturns, andWriteToConsoleAndLogtakes astd::string_view, so there is no formatting step to get wrong. Checking it in the test would mean capturing the process's stdout on Windows, Linux and macOS (and starting the log), which is more code than this change. The line is confirmed in a game run instead (Ghost of Yōtei, quoted in the description), so I'll keep the test on the extraction.@coderabbitai[bot] on GitHub · 2026-11-15 15:54 UTC · original
@Nawid3333 That makes sense. The test covers extraction and mode handling, and the reported Ghost of Yōtei run provides an end-to-end check of the output. I won’t request a separate output-capture test.
You are interacting with an AI system.
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.