1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 05:32:54 +01:00

Re-write FileScanner for easier cross platform and multiple patterns

This commit is contained in:
Ted John
2016-10-22 22:05:06 +01:00
parent 9118f24778
commit 7834afb34a
5 changed files with 266 additions and 116 deletions

View File

@@ -200,7 +200,7 @@ private:
{
utf8 pattern[MAX_PATH];
String::Set(pattern, sizeof(pattern), directory);
Path::Append(pattern, sizeof(pattern), "*.td6");
Path::Append(pattern, sizeof(pattern), "*.td4;*.td6");
IFileScanner * scanner = Path::ScanDirectory(pattern, true);
while (scanner->Next())