mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-02 23:07:36 +02:00
Add check for mod compatibilty
This commit is contained in:
parent
420f358599
commit
d1b13a0fe4
@ -763,6 +763,9 @@ void ModDependenciesResolver::tryAddMods(TModList modsToResolve, const ModsStora
|
|||||||
if (mod.isTranslation() && CGeneralTextHandler::getPreferredLanguage() != mod.getBaseLanguage())
|
if (mod.isTranslation() && CGeneralTextHandler::getPreferredLanguage() != mod.getBaseLanguage())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if(!mod.isCompatible())
|
||||||
|
return false;
|
||||||
|
|
||||||
if(mod.getDependencies().size() > resolvedModIDs.size())
|
if(mod.getDependencies().size() > resolvedModIDs.size())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user