mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
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.