MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / TranslateWin32Attributes

Function TranslateWin32Attributes

common/FileSystem.cpp:1414–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412#ifdef _WIN32
1413
1414static 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
1428static 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)

Callers 1

StatFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected