Skip to content

Commit 78f6d66

Browse files
authored
Fix #3770 Glob pattern in meta.xml should exclude meta.xml (#3779)
Update CResource.cpp
1 parent 2318836 commit 78f6d66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Server/mods/deathmatch/logic/CResource.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,9 @@ std::vector<std::string> CResource::GetFilePaths(const char* szFilename)
13711371
std::string strPath = std::filesystem::relative(path, strDirectory).string();
13721372
ReplaceSlashes(strPath);
13731373

1374+
if (strPath == "meta.xml")
1375+
continue;
1376+
13741377
vecFiles.push_back(std::move(strPath));
13751378
}
13761379

0 commit comments

Comments
 (0)