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
@@ -64,6 +64,8 @@ void ApplyAllCustomPatches()
try {
for (std::filesystem::path p : std::filesystem::directory_iterator("patches"))
{
if (std::filesystem::path(p).filename().string()._Starts_with("._")) continue; // exclude macOS metadata
std::string extension = std::filesystem::path(p).extension().string();
if ((extension == ".p" || extension == ".P" || extension == ".p2" || extension == ".P2"))
{