mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
(menu_entry) Cleanups
This commit is contained in:
parent
2eae195c73
commit
b3c28bb56f
@ -27,7 +27,6 @@ static int action_select_default(const char *path, const char *label, unsigned t
|
||||
menu_entry_t entry;
|
||||
enum menu_action action = MENU_ACTION_NOOP;
|
||||
menu_file_list_cbs_t *cbs = NULL;
|
||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
rarch_setting_t *setting = menu_setting_find(
|
||||
menu_list->selection_buf->list[idx].label);
|
||||
@ -39,7 +38,6 @@ static int action_select_default(const char *path, const char *label, unsigned t
|
||||
if (setting_is_of_path_type(setting))
|
||||
return 0;
|
||||
|
||||
nav->selection_ptr = idx;
|
||||
if ((cbs && cbs->action_ok) || setting_is_of_general_type(setting))
|
||||
action = MENU_ACTION_OK;
|
||||
else
|
||||
|
@ -392,6 +392,9 @@ int menu_entry_get_current_id(bool use_representation)
|
||||
int menu_entry_select(uint32_t i)
|
||||
{
|
||||
menu_entry_t entry;
|
||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||
|
||||
nav->selection_ptr = i;
|
||||
menu_entry_get(&entry, i, NULL, false);
|
||||
|
||||
return menu_entry_action(&entry, i, MENU_ACTION_SELECT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user