mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Implemented enabling and disabling of mods with dependencies resolving
This commit is contained in:
@@ -53,11 +53,6 @@ QStringList ModStateModel::getAllMods() const
|
||||
return stringListStdToQt(modManager->getAllMods());
|
||||
}
|
||||
|
||||
QStringList ModStateModel::getSubmods(QString modName) const
|
||||
{
|
||||
return {}; //TODO
|
||||
}
|
||||
|
||||
bool ModStateModel::isModExists(QString modName) const
|
||||
{
|
||||
return vstd::contains(modManager->getAllMods(), modName.toStdString());
|
||||
@@ -92,3 +87,13 @@ double ModStateModel::getInstalledModSizeMegabytes(QString modName) const
|
||||
{
|
||||
return modManager->getInstalledModSizeMegabytes(modName.toStdString());
|
||||
}
|
||||
|
||||
void ModStateModel::doEnableMod(QString modname)
|
||||
{
|
||||
modManager->tryEnableMod(modname.toStdString());
|
||||
}
|
||||
|
||||
void ModStateModel::doDisableMod(QString modname)
|
||||
{
|
||||
modManager->tryDisableMod(modname.toStdString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user