Exclude macOS metadata

This commit is contained in:
nastys
2021-08-11 20:07:24 +02:00
parent 7dbfed3942
commit 64c47118d8
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -220,6 +220,8 @@ void FindFiles(WIN32_FIND_DATAW* fd)
do {
if (!(fd->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
if (fd->cFileName[0] == '.' && fd->cFileName[1] == '_') continue; // exclude macOS metadata
if (!_wcsicmp(fd->cFileName, L"Patches.dva") || !_wcsicmp(fd->cFileName, L"Render.dva"))
{
DeleteFileW(fd->cFileName);