mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-21 20:22:43 +00:00
Remove . and .. from dir_list_new win32.
This commit is contained in:
parent
2dc4af52dc
commit
54cf6bc06f
@ -241,6 +241,9 @@ struct string_list *dir_list_new(const char *dir, const char *ext, bool include_
|
||||
if (!include_dirs && is_dir)
|
||||
continue;
|
||||
|
||||
if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0)
|
||||
continue;
|
||||
|
||||
if (!is_dir && ext_list && !string_list_find_elem_prefix(ext_list, ".", file_ext))
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user