Forráskód Böngészése

Respect dependencies when checking for filesystem conflicts

Ivan Savenko 1 éve
szülő
commit
3e3f842fbe
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      lib/modding/CModHandler.cpp

+ 3 - 0
lib/modding/CModHandler.cpp

@@ -346,6 +346,9 @@ void CModHandler::loadModFilesystems()
 			if (leftModName == rightModName)
 				continue;
 
+			if (getModDependencies(leftModName).count(rightModName) || getModDependencies(rightModName).count(leftModName))
+				continue;
+
 			const auto & filter = [](const ResourcePath &path){return path.getType() != EResType::DIRECTORY;};
 
 			std::unordered_set<ResourcePath> leftResources = modFilesystems[leftModName]->getFilteredFiles(filter);