Vita: append messagebox title

This commit is contained in:
Ivan Epifanov 2021-06-21 15:42:47 +03:00 committed by Sam Lantinga
parent 6460151c84
commit 9d4527193d
1 changed files with 4 additions and 1 deletions

View File

@ -37,6 +37,7 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
SceMsgDialogUserMessageParam msgParam; SceMsgDialogUserMessageParam msgParam;
SceMsgDialogButtonsParam buttonParam; SceMsgDialogButtonsParam buttonParam;
SceDisplayFrameBuf dispparam; SceDisplayFrameBuf dispparam;
char message[512];
SceMsgDialogResult dialog_result; SceMsgDialogResult dialog_result;
SceCommonDialogErrorCode init_result; SceCommonDialogErrorCode init_result;
@ -52,7 +53,9 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
param.mode = SCE_MSG_DIALOG_MODE_USER_MSG; param.mode = SCE_MSG_DIALOG_MODE_USER_MSG;
SDL_zero(msgParam); SDL_zero(msgParam);
msgParam.msg = (const SceChar8*)messageboxdata->message; SDL_snprintf(message, 512, "%s\r\n\r\n%s", messageboxdata->title, messageboxdata->message);
msgParam.msg = (const SceChar8*)message;
SDL_zero(buttonParam); SDL_zero(buttonParam);
if (messageboxdata->numbuttons == 3) if (messageboxdata->numbuttons == 3)