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

Restored mod list display functionality in launcher

This commit is contained in:
Ivan Savenko
2024-11-13 17:25:59 +00:00
parent f8724b9558
commit 06ce71087e
14 changed files with 137 additions and 75 deletions

View File

@@ -69,9 +69,11 @@ class ModsStorage : boost::noncopyable
std::map<TModID, ModDescription> mods;
public:
ModsStorage(const TModList & modsToLoad, const std::vector<JsonNode> & repositoryList);
ModsStorage(const TModList & modsToLoad, const JsonNode & repositoryList);
const ModDescription & getMod(const TModID & fullID) const;
TModList getAllMods() const;
};
/// Provides public interface to access mod state
@@ -92,13 +94,13 @@ class DLL_LINKAGE ModManager : boost::noncopyable
void addNewModsToPreset();
public:
ModManager(const std::vector<JsonNode> & repositoryList);
ModManager(const JsonNode & repositoryList);
ModManager();
~ModManager();
const ModDescription & getModDescription(const TModID & modID) const;
const TModList & getActiveMods() const;
const TModList & getAllMods() const;
TModList getAllMods() const;
bool isModActive(const TModID & modID) const;
};