SDL_vitamessagebox: rearrange if/else

Set messageboxdata and buttonid as unused variables
This commit is contained in:
uyjulian 2021-02-28 14:38:55 -06:00 committed by Sam Lantinga
parent 70a19fd5ab
commit 29153a1c63
1 changed files with 5 additions and 5 deletions

View File

@ -32,11 +32,7 @@
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
{
return -1;
}
#else
SceCommonDialogConfigParam commonDialogConfigParam; SceCommonDialogConfigParam commonDialogConfigParam;
SceMsgDialogParam param; SceMsgDialogParam param;
SceMsgDialogUserMessageParam msgParam; SceMsgDialogUserMessageParam msgParam;
@ -139,6 +135,10 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
} }
return 0; return 0;
#else
(void)messageboxdata;
(void)buttonid;
return -1;
#endif #endif
} }