Have scaninc ignore non-existing files

This commit is contained in:
GriffinR 2024-09-13 23:40:00 -04:00
parent b8c71fa84d
commit 302193a814

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)