From 78f6d669adc97c51a825250dd4dbf1a4a4a0ff15 Mon Sep 17 00:00:00 2001 From: FileEX Date: Tue, 8 Oct 2024 16:49:29 +0200 Subject: [PATCH] Fix #3770 Glob pattern in meta.xml should exclude meta.xml (#3779) Update CResource.cpp --- Server/mods/deathmatch/logic/CResource.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Server/mods/deathmatch/logic/CResource.cpp b/Server/mods/deathmatch/logic/CResource.cpp index 759c6288da..3dcf147c39 100644 --- a/Server/mods/deathmatch/logic/CResource.cpp +++ b/Server/mods/deathmatch/logic/CResource.cpp @@ -1371,6 +1371,9 @@ std::vector CResource::GetFilePaths(const char* szFilename) std::string strPath = std::filesystem::relative(path, strDirectory).string(); ReplaceSlashes(strPath); + if (strPath == "meta.xml") + continue; + vecFiles.push_back(std::move(strPath)); }