mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 09:48:27 +00:00
(Filebrowser) Remove MODE_FILEBROWSER_REFRESH_PENDING
This commit is contained in:
parent
da8ff53115
commit
7abeca067d
@ -539,12 +539,7 @@ static void browser_update(void *data, uint64_t input, const char *extensions)
|
||||
filebrowser_action_t action = FILEBROWSER_ACTION_NOOP;
|
||||
bool ret = true;
|
||||
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_FILEBROWSER_REFRESH_PENDING))
|
||||
{
|
||||
action = FILEBROWSER_ACTION_REFRESH;
|
||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_FILEBROWSER_REFRESH_PENDING);
|
||||
}
|
||||
else if (input & (1ULL << RMENU_DEVICE_NAV_DOWN))
|
||||
if (input & (1ULL << RMENU_DEVICE_NAV_DOWN))
|
||||
action = FILEBROWSER_ACTION_DOWN;
|
||||
else if (input & (1ULL << RMENU_DEVICE_NAV_UP))
|
||||
action = FILEBROWSER_ACTION_UP;
|
||||
|
@ -102,20 +102,6 @@ bool with_extension)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool filebrowser_refresh_directory(void *data, const char * path)
|
||||
{
|
||||
filebrowser_t *filebrowser = (filebrowser_t*)data;
|
||||
bool ret = true;
|
||||
|
||||
char basedir[PATH_MAX];
|
||||
fill_pathname_basedir(basedir, path, sizeof(basedir));
|
||||
|
||||
ret = filebrowser_parse_directory(filebrowser, filebrowser->directory_stack_size, basedir,
|
||||
filebrowser->extensions);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool filebrowser_pop_directory (void *data)
|
||||
{
|
||||
filebrowser_t *filebrowser = (filebrowser_t*)data;
|
||||
@ -224,9 +210,6 @@ bool filebrowser_iterate(void *data, unsigned action)
|
||||
filebrowser->current_dir.ptr = (min(filebrowser->current_dir.ptr +
|
||||
entries_to_scroll, filebrowser->current_dir.list->size-1));
|
||||
break;
|
||||
case FILEBROWSER_ACTION_REFRESH:
|
||||
ret = filebrowser_refresh_directory(filebrowser, filebrowser_get_current_path(filebrowser));
|
||||
break;
|
||||
case FILEBROWSER_ACTION_OK:
|
||||
ret = filebrowser_push_directory(filebrowser, filebrowser_get_current_path(filebrowser), true);
|
||||
break;
|
||||
|
@ -38,7 +38,6 @@ typedef enum
|
||||
FILEBROWSER_ACTION_LEFT,
|
||||
FILEBROWSER_ACTION_RIGHT,
|
||||
FILEBROWSER_ACTION_OK,
|
||||
FILEBROWSER_ACTION_REFRESH,
|
||||
FILEBROWSER_ACTION_CANCEL,
|
||||
FILEBROWSER_ACTION_SCROLL_UP,
|
||||
FILEBROWSER_ACTION_SCROLL_DOWN,
|
||||
|
Loading…
Reference in New Issue
Block a user