Cleanups
This commit is contained in:
parent
c69c972942
commit
9456d88ce4
|
@ -1754,7 +1754,7 @@ static bool menu_init(menu_handle_t *menu_data)
|
|||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (!menu_entries_ctl(MENU_ENTRIES_CTL_INIT, NULL))
|
||||
if (!menu_entries_init())
|
||||
return false;
|
||||
|
||||
if (settings->bools.menu_show_start_screen)
|
||||
|
|
|
@ -976,7 +976,7 @@ file_list_t *menu_entries_get_selection_buf_ptr(size_t idx)
|
|||
return menu_list_get_selection(menu_list, (unsigned)idx);
|
||||
}
|
||||
|
||||
static bool menu_entries_init(void)
|
||||
bool menu_entries_init(void)
|
||||
{
|
||||
if (!menu_entries_ctl(MENU_ENTRIES_CTL_LIST_INIT, NULL))
|
||||
goto error;
|
||||
|
@ -1311,8 +1311,6 @@ bool menu_entries_ctl(enum menu_entries_ctl_state state, void *data)
|
|||
file_list_clear(list);
|
||||
}
|
||||
break;
|
||||
case MENU_ENTRIES_CTL_INIT:
|
||||
return menu_entries_init();
|
||||
case MENU_ENTRIES_CTL_SHOW_BACK:
|
||||
/* Returns true if a Back button should be shown
|
||||
* (i.e. we are at least
|
||||
|
|
|
@ -36,7 +36,6 @@ enum menu_entries_ctl_state
|
|||
{
|
||||
MENU_ENTRIES_CTL_NONE = 0,
|
||||
MENU_ENTRIES_CTL_DEINIT,
|
||||
MENU_ENTRIES_CTL_INIT,
|
||||
MENU_ENTRIES_CTL_LIST_GET,
|
||||
MENU_ENTRIES_CTL_LIST_DEINIT,
|
||||
MENU_ENTRIES_CTL_LIST_INIT,
|
||||
|
@ -286,6 +285,8 @@ int menu_entry_action(menu_entry_t *entry,
|
|||
|
||||
void menu_entry_init(menu_entry_t *entry);
|
||||
|
||||
bool menu_entries_init(void);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue