Skip to content

Commit

Permalink
[File browser] Filter out all entries starting with a dot. F.....g Ma…
Browse files Browse the repository at this point in the history
…c OS.
  • Loading branch information
profi200 committed Jul 31, 2024
1 parent 5356e5c commit 79b2457
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/arm11/filebrowser.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ static Result scanDir(const char *const path, DirList *const dList, const char *
const u32 nameLen = strlen(fis[i].fname);
if(entType == ENT_TYPE_FILE)
{
if(nameLen <= filterLen || strcmp(filter, fis[i].fname + nameLen - filterLen) != 0)
if(nameLen <= filterLen || strcmp(filter, fis[i].fname + nameLen - filterLen) != 0
|| fis[i].fname[0] == '.')
continue;
}

Expand Down

0 comments on commit 79b2457

Please sign in to comment.