| 1412 | #ifdef _WIN32 |
| 1413 | |
| 1414 | static u32 TranslateWin32Attributes(u32 Win32Attributes) |
| 1415 | { |
| 1416 | u32 r = 0; |
| 1417 | |
| 1418 | if (Win32Attributes & FILE_ATTRIBUTE_DIRECTORY) |
| 1419 | r |= FILESYSTEM_FILE_ATTRIBUTE_DIRECTORY; |
| 1420 | if (Win32Attributes & FILE_ATTRIBUTE_READONLY) |
| 1421 | r |= FILESYSTEM_FILE_ATTRIBUTE_READ_ONLY; |
| 1422 | if (Win32Attributes & FILE_ATTRIBUTE_COMPRESSED) |
| 1423 | r |= FILESYSTEM_FILE_ATTRIBUTE_COMPRESSED; |
| 1424 | |
| 1425 | return r; |
| 1426 | } |
| 1427 | |
| 1428 | static u32 RecursiveFindFiles(const char* origin_path, const char* parent_path, const char* path, const char* pattern, |
| 1429 | u32 flags, FileSystem::FindResultsArray* results, std::vector<std::string>& visited, ProgressCallback* cancel) |