mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-25 12:20:48 +00:00
(ui_cocoa.m) Cleanups - add fall-throughs
This commit is contained in:
parent
e140c9f8ee
commit
0b06eea846
@ -246,30 +246,24 @@ static enum ui_msg_window_response ui_msg_window_cocoa_dialog(ui_msg_window_stat
|
|||||||
|
|
||||||
switch (state->buttons)
|
switch (state->buttons)
|
||||||
{
|
{
|
||||||
|
case UI_MSG_WINDOW_OKCANCEL:
|
||||||
|
if (response == NSAlertSecondButtonReturn)
|
||||||
|
return UI_MSG_RESPONSE_CANCEL;
|
||||||
|
/* fall-through */
|
||||||
case UI_MSG_WINDOW_OK:
|
case UI_MSG_WINDOW_OK:
|
||||||
if (response == NSAlertFirstButtonReturn)
|
if (response == NSAlertFirstButtonReturn)
|
||||||
return UI_MSG_RESPONSE_OK;
|
return UI_MSG_RESPONSE_OK;
|
||||||
break;
|
break;
|
||||||
case UI_MSG_WINDOW_OKCANCEL:
|
case UI_MSG_WINDOW_YESNOCANCEL:
|
||||||
if (response == NSAlertFirstButtonReturn)
|
if (response == NSAlertThirdButtonReturn)
|
||||||
return UI_MSG_RESPONSE_OK;
|
|
||||||
if (response == NSAlertSecondButtonReturn)
|
|
||||||
return UI_MSG_RESPONSE_CANCEL;
|
return UI_MSG_RESPONSE_CANCEL;
|
||||||
break;
|
/* fall-through */
|
||||||
case UI_MSG_WINDOW_YESNO:
|
case UI_MSG_WINDOW_YESNO:
|
||||||
if (response == NSAlertFirstButtonReturn)
|
if (response == NSAlertFirstButtonReturn)
|
||||||
return UI_MSG_RESPONSE_YES;
|
return UI_MSG_RESPONSE_YES;
|
||||||
if (response == NSAlertSecondButtonReturn)
|
if (response == NSAlertSecondButtonReturn)
|
||||||
return UI_MSG_RESPONSE_NO;
|
return UI_MSG_RESPONSE_NO;
|
||||||
break;
|
break;
|
||||||
case UI_MSG_WINDOW_YESNOCANCEL:
|
|
||||||
if (response == NSAlertFirstButtonReturn)
|
|
||||||
return UI_MSG_RESPONSE_YES;
|
|
||||||
if (response == NSAlertSecondButtonReturn)
|
|
||||||
return UI_MSG_RESPONSE_NO;
|
|
||||||
if (response == NSAlertThirdButtonReturn)
|
|
||||||
return UI_MSG_RESPONSE_CANCEL;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return UI_MSG_RESPONSE_NA;
|
return UI_MSG_RESPONSE_NA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user