Merge pull request #1 from RayTF/recover-branch

Fix LibPICOFE
This commit is contained in:
Ray The Fox 2024-08-09 01:52:12 +00:00 committed by GitHub
commit 10c564f806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

11
menu.c
View file

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