Older api, not needed

main
Ivan Epifanov 2021-06-10 12:06:28 +03:00 committed by Ryan C. Gordon
parent dd2a285825
commit c2b8b55634
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,6 @@
int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{ {
#if SDL_VIDEO_RENDER_VITA_GXM #if SDL_VIDEO_RENDER_VITA_GXM
SceCommonDialogConfigParam commonDialogConfigParam;
SceMsgDialogParam param; SceMsgDialogParam param;
SceMsgDialogUserMessageParam msgParam; SceMsgDialogUserMessageParam msgParam;
SceMsgDialogButtonsParam buttonParam; SceMsgDialogButtonsParam buttonParam;
@ -47,14 +46,15 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{ {
return -1; return -1;
} }
SDL_zero(commonDialogConfigParam);
sceCommonDialogSetConfigParam(&commonDialogConfigParam);
SDL_zero(param); SDL_zero(param);
sceMsgDialogParamInit(&param); sceMsgDialogParamInit(&param);
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; msgParam.msg = (const SceChar8*)messageboxdata->message;
SDL_zero(buttonParam); SDL_zero(buttonParam);
if (messageboxdata->numbuttons == 3) if (messageboxdata->numbuttons == 3)
{ {
msgParam.buttonType = SCE_MSG_DIALOG_BUTTON_TYPE_3BUTTONS; msgParam.buttonType = SCE_MSG_DIALOG_BUTTON_TYPE_3BUTTONS;