From 80244dfe6bb7688c1eaad4f2325740a3a1f63672 Mon Sep 17 00:00:00 2001 From: Ray The Fox <120764243+RayTF@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:09:26 -0300 Subject: [PATCH 1/2] Update menu.c --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index 5eb48b9..a995659 100644 --- a/menu.c +++ b/menu.c @@ -970,7 +970,7 @@ static int scandir_filter(const struct dirent *ent) 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) From 45e44c2aab97cb4d505c53048c383afdd7814f88 Mon Sep 17 00:00:00 2001 From: Ray The Fox <120764243+RayTF@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:14:26 -0300 Subject: [PATCH 2/2] Update menu.c --- menu.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/menu.c b/menu.c index a995659..da8940b 100644 --- a/menu.c +++ b/menu.c @@ -961,15 +961,6 @@ 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 1; }