diff --git a/menu.c b/menu.c index 5eb48b9..da8940b 100644 --- a/menu.c +++ b/menu.c @@ -961,16 +961,7 @@ static int scandir_filter(const struct dirent *ent) return 1; } - ext = strrchr(ent->d_name, '.'); - if (ext == NULL) - return 0; - - ext++; - for (i = 0; filter[i] != NULL; i++) - if (strcasecmp(ext, filter[i]) == 0) - return 1; - - return 0; + return 1; } static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c)