mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Omit . and .. from linix file scanning too
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user