(menu_entry) Cleanups

This commit is contained in:
Twinaphex 2015-06-01 07:49:49 +02:00
parent 2eae195c73
commit b3c28bb56f
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);