diff --git a/menu/menu_entry.c b/menu/menu_entry.c index 7155053bec..0962f25408 100644 --- a/menu/menu_entry.c +++ b/menu/menu_entry.c @@ -87,24 +87,6 @@ bool menu_entries_show_back(void) return (menu_list_get_stack_size(menu_list) > 1); } -/* Clicks the back button */ -int menu_entry_go_back(void) -{ - menu_list_t *menu_list = menu_list_get_ptr(); - if (!menu_list) - return -1; - - menu_setting_apply_deferred(); - menu_list_pop_stack(menu_list); - - if (menu_needs_refresh()) - menu_do_refresh(MENU_ACTION_CANCEL); - - rarch_main_data_iterate(); - - return 0; -} - /* Sets 's' to the name of the current core * (shown at the top of the UI). */ void menu_entries_get_core_title(char *s, size_t len) @@ -127,6 +109,25 @@ void menu_entries_get_core_title(char *s, size_t len) core_name, core_version); } +/* Clicks the back button */ +int menu_entry_go_back(void) +{ + menu_list_t *menu_list = menu_list_get_ptr(); + if (!menu_list) + return -1; + + menu_setting_apply_deferred(); + menu_list_pop_stack(menu_list); + + if (menu_needs_refresh()) + menu_do_refresh(MENU_ACTION_CANCEL); + + rarch_main_data_iterate(); + + return 0; +} + + static rarch_setting_t *menu_entry_get_setting(uint32_t i) { const char *path = NULL, *entry_label = NULL;