Have scaninc ignore non-existing files

This commit is contained in:
GriffinR 2024-09-13 23:12:50 -04:00
parent ab80760dfc
commit f89a69a2d9
1 changed files with 5 additions and 0 deletions

View File

@ -125,7 +125,12 @@ int main(int argc, char **argv)
if (!exists && (file.FileType() == SourceFileType::Asm || file.FileType() == SourceFileType::Inc))
{
path = include;
if (CanOpenFile(path))
exists = true;
}
if (!exists)
continue;
dependencies_includes.insert(path);
bool inserted = dependencies.insert(path).second;
if (inserted && exists)