mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 23:42:14 +00:00
Cleanups
This commit is contained in:
parent
2f3746a431
commit
fe1351cc0d
@ -172,18 +172,11 @@ static bool menu_entries_get_nonblocking_refresh(void)
|
||||
return entries->nonblocking_refresh;
|
||||
}
|
||||
|
||||
int menu_entries_refresh(void)
|
||||
{
|
||||
if (menu_entries_get_nonblocking_refresh())
|
||||
return -1;
|
||||
if (!menu_entries_needs_refresh())
|
||||
return -1;
|
||||
return menu_entry_iterate(MENU_ACTION_REFRESH);
|
||||
}
|
||||
|
||||
bool menu_entries_needs_refresh(void)
|
||||
{
|
||||
menu_entries_t *entries = menu_entries_get_ptr();
|
||||
if (menu_entries_get_nonblocking_refresh())
|
||||
return false;
|
||||
if (!entries)
|
||||
return false;
|
||||
return entries->need_refresh;
|
||||
|
@ -56,8 +56,6 @@ int menu_entries_get_core_title(char *title_msg, size_t title_msg_len);
|
||||
|
||||
menu_entries_t *menu_entries_get_ptr(void);
|
||||
|
||||
int menu_entries_refresh(void);
|
||||
|
||||
bool menu_entries_needs_refresh(void);
|
||||
|
||||
void menu_entries_set_refresh(void);
|
||||
|
@ -378,6 +378,9 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
menu_file_list_cbs_t *cbs = menu_list_get_actiondata_at_offset(menu_list->selection_buf, i);
|
||||
|
||||
if (menu_entries_needs_refresh())
|
||||
action = MENU_ACTION_REFRESH;
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case MENU_ACTION_UP:
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "../driver.h"
|
||||
#include "menu.h"
|
||||
#include "menu_cbs.h"
|
||||
#include "menu_hash.h"
|
||||
#include "menu_list.h"
|
||||
#include "menu_navigation.h"
|
||||
|
@ -214,8 +214,6 @@ static void rarch_main_data_menu_iterate(void)
|
||||
if (rarch_main_data_db_pending_scan_finished())
|
||||
menu_environment_cb(MENU_ENVIRON_RESET_HORIZONTAL_LIST, NULL);
|
||||
#endif
|
||||
|
||||
menu_entries_refresh();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user