forked from Mirror/GodMode9
Also ignore "._" in file selector
This commit is contained in:
parent
770137ceb0
commit
5f43dcc02d
@ -683,8 +683,9 @@ bool FileSelector(char* result, const char* text, const char* path, const char*
|
|||||||
u32 n_opt = 0;
|
u32 n_opt = 0;
|
||||||
for (; pos < contents->n_entries; pos++) {
|
for (; pos < contents->n_entries; pos++) {
|
||||||
DirEntry* entry = &(contents->entry[pos]);
|
DirEntry* entry = &(contents->entry[pos]);
|
||||||
if (!((entry->type == T_DIR) && (!no_dirs)) &&
|
if (((entry->type == T_DIR) && no_dirs) ||
|
||||||
!((entry->type == T_FILE) && (fvx_match_name(entry->name, pattern) == FR_OK)))
|
((entry->type == T_FILE) && (fvx_match_name(entry->name, pattern) != FR_OK)) ||
|
||||||
|
(entry->type == T_DOTDOT) || (strncmp(entry->name, "._", 2) == 0))
|
||||||
continue;
|
continue;
|
||||||
if (n_opt == _MAX_FS_OPT) {
|
if (n_opt == _MAX_FS_OPT) {
|
||||||
snprintf(opt_names[n_opt++], 32, "[more...]");
|
snprintf(opt_names[n_opt++], 32, "[more...]");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user