1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Close #11473: Implement FileWatcher for macOS

This commit is contained in:
Umar Ahmed
2023-01-08 08:18:13 -05:00
committed by GitHub
parent f5043183f7
commit 960a989d05
7 changed files with 96 additions and 14 deletions

View File

@@ -73,7 +73,7 @@ private:
std::stack<DirectoryState> _directoryStack;
// Current
FileInfo* _currentFileInfo;
FileScanner::FileInfo* _currentFileInfo;
utf8* _currentPath;
public:
@@ -84,7 +84,7 @@ public:
_patterns = GetPatterns(Path::GetFileName(pattern));
_currentPath = Memory::Allocate<utf8>(MAX_PATH);
_currentFileInfo = Memory::Allocate<FileInfo>();
_currentFileInfo = Memory::Allocate<FileScanner::FileInfo>();
Reset();
}
@@ -95,7 +95,7 @@ public:
Memory::Free(_currentFileInfo);
}
const FileInfo* GetFileInfo() const override
const FileScanner::FileInfo* GetFileInfo() const override
{
return _currentFileInfo;
}
@@ -349,7 +349,7 @@ void Path::QueryDirectory(QueryDirectoryResult* result, const std::string& patte
auto scanner = Path::ScanDirectory(pattern, true);
while (scanner->Next())
{
const FileInfo* fileInfo = scanner->GetFileInfo();
const FileScanner::FileInfo* fileInfo = scanner->GetFileInfo();
const utf8* path = scanner->GetPath();
result->TotalFiles++;