1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Convert FileEnumerator to IFileScanner

This commit is contained in:
Ted John
2016-10-22 19:10:16 +01:00
parent a17748eb41
commit 16626eabb8
5 changed files with 174 additions and 152 deletions

View File

@@ -202,12 +202,13 @@ private:
String::Set(pattern, sizeof(pattern), directory);
Path::Append(pattern, sizeof(pattern), "*.td6");
auto fileEnumerator = FileEnumerator(pattern, true);
while (fileEnumerator.Next())
IFileScanner * scanner = Path::ScanDirectory(pattern, true);
while (scanner->Next())
{
const utf8 * path = fileEnumerator.GetPath();
const utf8 * path = scanner->GetPath();
AddTrack(path, flags);
}
delete scanner;
}
void AddTrack(const utf8 * path, uint32 flags = 0)