1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Restored mod uninstall functionality, restored translatable mod fields,

added more fields to translatable list
This commit is contained in:
Ivan Savenko
2024-11-15 11:54:43 +00:00
parent 2fcda48c65
commit 30ed066cea
8 changed files with 56 additions and 15 deletions

View File

@@ -234,8 +234,7 @@ bool ModStateController::doInstallMod(QString modname, QString archivePath)
removeModDir(destDir + upperLevel);
CResourceHandler::get("initial")->updateFilteredFiles([](const std::string &) { return true; });
//loadMods();
//modList->reloadRepositories();
//modList->reloadLocalMods();
return true;
}
@@ -254,8 +253,7 @@ bool ModStateController::doUninstallMod(QString modname)
return addError(modname, tr("Mod is located in protected directory, please remove it manually:\n") + modFullDir.absolutePath());
CResourceHandler::get("initial")->updateFilteredFiles([](const std::string &){ return true; });
//loadMods();
//modList->reloadRepositories();
modList->reloadLocalState();
return true;
}