mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
fix #load_directory including nested directories
This commit is contained in:
@@ -1533,6 +1533,10 @@ gb_internal LoadDirectiveResult check_load_directory_directive(CheckerContext *c
|
|||||||
|
|
||||||
for (FileInfo fi : list) {
|
for (FileInfo fi : list) {
|
||||||
LoadFileCache *cache = nullptr;
|
LoadFileCache *cache = nullptr;
|
||||||
|
if (fi.is_dir) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (cache_load_file_directive(c, call, fi.fullpath, err_on_not_found, &cache, LoadFileTier_Contents, /*use_mutex*/false)) {
|
if (cache_load_file_directive(c, call, fi.fullpath, err_on_not_found, &cache, LoadFileTier_Contents, /*use_mutex*/false)) {
|
||||||
array_add(&file_caches, cache);
|
array_add(&file_caches, cache);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user