mirror of https://github.com/pret/pokefirered
Have scaninc ignore non-existing files
This commit is contained in:
parent
ab80760dfc
commit
f89a69a2d9
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue