(Filebrowser) Remove MODE_FILEBROWSER_REFRESH_PENDING

This commit is contained in:
twinaphex 2013-01-22 20:42:11 +01:00
parent da8ff53115
commit 7abeca067d
4 changed files with 1 additions and 25 deletions

View File

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

View File

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

View File

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

View File

@ -133,7 +133,6 @@ enum menu_enums
MODE_VIDEO_PAL_TEMPORAL_ENABLE,
MODE_VIDEO_PAL_VSYNC_BLOCK,
MODE_AUDIO_CUSTOM_BGM_ENABLE,
MODE_FILEBROWSER_REFRESH_PENDING,
MODE_OSK_DRAW,
MODE_OSK_ENTRY_SUCCESS,
MODE_OSK_ENTRY_FAIL,