forked from rosebudai/OpenRCT2-Web
Convert FileEnumerator to IFileScanner
This commit is contained in:
1 parent
a17748eb41
commit
16626eabb8
5 files changed
+174
-152
No files matched your search
@@ -246,13 +246,14 @@ private:
|
||||
String::Set(pattern, sizeof(pattern), directory);
|
||||
Path::Append(pattern, sizeof(pattern), "*.sc6");
|
||||
|
||||
auto fileEnumerator = FileEnumerator(pattern, true);
|
||||
while (fileEnumerator.Next())
|
||||
IFileScanner * scanner = Path::ScanDirectory(pattern, true);
|
||||
while (scanner->Next())
|
||||
{
|
||||
auto path = fileEnumerator.GetPath();
|
||||
auto fileInfo = fileEnumerator.GetFileInfo();
|
||||
auto path = scanner->GetPath();
|
||||
auto fileInfo = scanner->GetFileInfo();
|
||||
AddScenario(path, fileInfo->last_modified);
|
||||
}
|
||||
delete scanner;
|
||||
}
|
||||
|
||||
void AddScenario(const utf8 * path, uint64 timestamp)
|
||||
|
||||
Reference in new issue
Block a user