mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
Simplify action_iterate_switch
This commit is contained in:
parent
29a10e5cb3
commit
29e3c47c2d
@ -485,7 +485,7 @@ static int action_iterate_message(const char *label, unsigned action)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int action_iterate_switch(const char *label, unsigned action)
|
static int action_iterate_switch(unsigned action)
|
||||||
{
|
{
|
||||||
menu_entry_t entry;
|
menu_entry_t entry;
|
||||||
size_t selected = menu_navigation_get_current_selection();
|
size_t selected = menu_navigation_get_current_selection();
|
||||||
@ -531,7 +531,7 @@ static int action_iterate_main(const char *label, unsigned action)
|
|||||||
if (menu->need_refresh && !menu->nonblocking_refresh && action != MENU_ACTION_MESSAGE)
|
if (menu->need_refresh && !menu->nonblocking_refresh && action != MENU_ACTION_MESSAGE)
|
||||||
action = MENU_ACTION_REFRESH;
|
action = MENU_ACTION_REFRESH;
|
||||||
|
|
||||||
ret = action_iterate_switch(label, action);
|
ret = action_iterate_switch(action);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user