From 923633ae61b255c64dee9cf011382086453286d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Jan 2014 22:18:59 +0300 Subject: add mods loading based on settings. --- src/gui/windows/updaterwindow.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/windows/updaterwindow.h') diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h index 433ab82ad..bddd3ef9e 100644 --- a/src/gui/windows/updaterwindow.h +++ b/src/gui/windows/updaterwindow.h @@ -51,6 +51,7 @@ struct UpdateFile final hash(), type(), desc(), + group(), required(false) { } @@ -58,6 +59,7 @@ struct UpdateFile final std::string hash; std::string type; std::string desc; + std::string group; bool required; }; @@ -151,6 +153,14 @@ class UpdaterWindow final : public Window, static unsigned long getFileHash(const std::string &filePath); + static void loadMods(const std::string &dir, + const ResourceManager *const resman, + const std::vector &updateFiles); + + static void loadDirMods(const std::string &dir); + + static void unloadMods(const std::string &dir); + private: void download(); -- cgit v1.2.3-60-g2f50