1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Implement detection of mod compatibility patches

This commit is contained in:
Ivan Savenko
2024-10-06 15:54:30 +00:00
parent d0aba56a5e
commit d849e53499
6 changed files with 62 additions and 19 deletions

View File

@ -392,6 +392,12 @@ std::string CModHandler::getModLanguage(const TModID& modId) const
return allMods.at(modId).baseLanguage;
}
std::set<TModID> CModHandler::getModDependencies(const TModID & modId) const
{
bool isModFound;
return getModDependencies(modId, isModFound);
}
std::set<TModID> CModHandler::getModDependencies(const TModID & modId, bool & isModFound) const
{
auto it = allMods.find(modId);
@ -499,8 +505,8 @@ void CModHandler::load()
content->loadCustom();
for(const TModID & modName : activeMods)
loadTranslation(modName);
// for(const TModID & modName : activeMods)
// loadTranslation(modName);
#if 0
for(const TModID & modName : activeMods)