mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Menu) Small cleanups
This commit is contained in:
parent
e96074d452
commit
44703be456
@ -618,13 +618,8 @@ static int menu_common_iterate(unsigned action)
|
|||||||
case MENU_ACTION_LEFT:
|
case MENU_ACTION_LEFT:
|
||||||
if (is_category)
|
if (is_category)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
if (cbs && cbs->action_toggle)
|
if (cbs && cbs->action_toggle)
|
||||||
ret = cbs->action_toggle(type_offset, label_offset, action);
|
ret = cbs->action_toggle(type_offset, label_offset, action);
|
||||||
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -639,13 +634,8 @@ static int menu_common_iterate(unsigned action)
|
|||||||
case MENU_ACTION_RIGHT:
|
case MENU_ACTION_RIGHT:
|
||||||
if (is_category)
|
if (is_category)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
if (cbs && cbs->action_toggle)
|
if (cbs && cbs->action_toggle)
|
||||||
ret = cbs->action_toggle(type_offset, label_offset, action);
|
ret = cbs->action_toggle(type_offset, label_offset, action);
|
||||||
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -676,6 +666,9 @@ static int menu_common_iterate(unsigned action)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
ret = mouse_post_iterate(cbs, path_offset, label_offset, type_offset, action);
|
ret = mouse_post_iterate(cbs, path_offset, label_offset, type_offset, action);
|
||||||
|
|
||||||
if (driver.menu_ctx && driver.menu_ctx->iterate)
|
if (driver.menu_ctx && driver.menu_ctx->iterate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user