|
@@ -20,8 +20,6 @@
|
|
|
|
|
|
namespace
|
|
|
{
|
|
|
-const QLatin1String extraResolutionsMod{"vcmi-extras.extraresolutions"};
|
|
|
-
|
|
|
QString detectModArchive(QString path, QString modName)
|
|
|
{
|
|
|
auto files = ZipArchive::listFiles(qstringToPath(path));
|
|
@@ -223,11 +221,6 @@ bool CModManager::canDisableMod(QString modname)
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-bool CModManager::isExtraResolutionsModEnabled() const
|
|
|
-{
|
|
|
- return modList->hasMod(extraResolutionsMod) && modList->getMod(extraResolutionsMod).isEnabled();
|
|
|
-}
|
|
|
-
|
|
|
static QVariant writeValue(QString path, QVariantMap input, QVariant value)
|
|
|
{
|
|
|
if(path.size() > 1)
|
|
@@ -255,8 +248,6 @@ bool CModManager::doEnableMod(QString mod, bool on)
|
|
|
modList->setModSettings(modSettings["activeMods"]);
|
|
|
modList->modChanged(mod);
|
|
|
|
|
|
- if(mod == extraResolutionsMod)
|
|
|
- sendExtraResolutionsEnabledChanged(on);
|
|
|
|
|
|
JsonUtils::JsonToFile(settingsPath(), modSettings);
|
|
|
|
|
@@ -298,9 +289,6 @@ bool CModManager::doInstallMod(QString modname, QString archivePath)
|
|
|
loadMods();
|
|
|
modList->reloadRepositories();
|
|
|
|
|
|
- if(modname == extraResolutionsMod)
|
|
|
- sendExtraResolutionsEnabledChanged(true);
|
|
|
-
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -321,9 +309,6 @@ bool CModManager::doUninstallMod(QString modname)
|
|
|
loadMods();
|
|
|
modList->reloadRepositories();
|
|
|
|
|
|
- if(modname == extraResolutionsMod)
|
|
|
- sendExtraResolutionsEnabledChanged(false);
|
|
|
-
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -347,8 +332,3 @@ bool CModManager::removeModDir(QString path)
|
|
|
|
|
|
return dir.removeRecursively();
|
|
|
}
|
|
|
-
|
|
|
-void CModManager::sendExtraResolutionsEnabledChanged(bool enabled)
|
|
|
-{
|
|
|
- emit extraResolutionsEnabledChanged(enabled);
|
|
|
-}
|