mirror of https://github.com/OpenRCT2/OpenRCT2.git
Omit . and .. from linix file scanning too
This commit is contained in:
parent
a9db9528ae
commit
25a7b98be0
|
@ -303,8 +303,13 @@ protected:
|
|||
{
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
DirectoryChild child = CreateChild(path, namelist[i]);
|
||||
children.push_back(child);
|
||||
const struct dirent * node = namelist[i];
|
||||
if (!String::Equals(node->d_name, ".") &&
|
||||
!String::Equals(node->d_name, ".."))
|
||||
{
|
||||
DirectoryChild child = CreateChild(path, node);
|
||||
children.push_back(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue