mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Cleanups
This commit is contained in:
parent
a82cc0d31f
commit
2c69bc7d79
@ -1274,7 +1274,6 @@ static int zarch_iterate(void *data, void *userdata, enum menu_action action)
|
|||||||
int action_id, ret = 0;
|
int action_id, ret = 0;
|
||||||
menu_entry_t entry;
|
menu_entry_t entry;
|
||||||
bool perform_action = true;
|
bool perform_action = true;
|
||||||
enum menu_action act = (enum menu_action)action;
|
|
||||||
menu_handle_t *menu = (menu_handle_t*)data;
|
menu_handle_t *menu = (menu_handle_t*)data;
|
||||||
zui_t *zui = (zui_t*)userdata;
|
zui_t *zui = (zui_t*)userdata;
|
||||||
|
|
||||||
@ -1299,17 +1298,17 @@ static int zarch_iterate(void *data, void *userdata, enum menu_action action)
|
|||||||
menu_entry_get(&entry, 0, zui->pending_action_ok.idx, NULL, false);
|
menu_entry_get(&entry, 0, zui->pending_action_ok.idx, NULL, false);
|
||||||
zui->pending_action_ok.enable = false;
|
zui->pending_action_ok.enable = false;
|
||||||
|
|
||||||
act = MENU_ACTION_OK;
|
action = MENU_ACTION_OK;
|
||||||
action_id = zui->pending_action_ok.idx;
|
action_id = zui->pending_action_ok.idx;
|
||||||
zui->pending_action_ok.idx = 0;
|
zui->pending_action_ok.idx = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
zui->action = act;
|
zui->action = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (perform_action)
|
if (perform_action)
|
||||||
ret = menu_entry_action(&entry, action_id, act);
|
ret = menu_entry_action(&entry, action_id, action);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user