Commit Graph
5 Commits
Author SHA1 Message Date
MarcZX10 e0d9b76aa0 feat(libSceMsgDialog): build a modal dialog request from a user message
MsgDialog::BuildRequest turns a parsed user message with button type 0, 1, 3 or 4
into a ModalDialogRequest: OK; Yes and No; OK and Cancel; Yes and No with the
focus on No. The cancel input picks the last button. Dialogs without a message
pointer, in progress bar or system message mode, without buttons or with a
button type outside those four are not presented, so their callers keep the
automatic answer. The button id of a choice is its index plus one.
2026-10-29 14:06:13 +00:00
MarcZX10 7143ace9e7 feat(libSceMsgDialog): decode the UTF-8 message of a dialog to UTF-16
The overlay draws UTF-16 code units. MsgDialog::DecodeUtf8 converts a guest
message, replacing each byte of an invalid, overlong, truncated or surrogate
sequence and each stray continuation byte with U+FFFD, and encoding code points
past U+FFFF as surrogate pairs.
2026-10-29 14:06:13 +00:00
MarcZX10 3f73df139d refactor(libSceMsgDialog): parse SceMsgDialogParam into a typed header
sceMsgDialogOpen read the mode, the user message parameter, the button type and
the message through a function that wrote file-scope state. The parse is now a
stateless header returning a ParsedParam, so both message dialog libraries and
tests can share it. The mode, the readability checks, the focused button and the
logged text are unchanged.
2026-10-29 14:06:12 +00:00
boykopovar a448723103 fix(sdk): remove duplicate message dialog result export 2026-10-24 23:17:48 +03:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00