mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Implemented validation of preset - removal of non-existing mods,
addition of newly installed mods
This commit is contained in:
@ -106,9 +106,24 @@ ModVerificationInfo ModDescription::getVerificationInfo() const
|
||||
return result;
|
||||
}
|
||||
|
||||
bool ModDescription::isCompatibility() const
|
||||
{
|
||||
return getConfig()["modType"].String() == "Compatibility";
|
||||
}
|
||||
|
||||
bool ModDescription::isTranslation() const
|
||||
{
|
||||
return getConfig()["modType"].String() == "Translation";
|
||||
}
|
||||
|
||||
bool ModDescription::keepDisabled() const
|
||||
{
|
||||
return getConfig()["keepDisabled"].Bool();
|
||||
}
|
||||
|
||||
bool ModDescription::affectsGameplay() const
|
||||
{
|
||||
return false; // TODO
|
||||
return true; // TODO
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user