summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-09 22:18:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-09 22:57:42 +0300
commit923633ae61b255c64dee9cf011382086453286d8 (patch)
treed8851d3b80df477854c2293e3cbea2a026b079ad /src/gui/windows/updaterwindow.h
parente0baa7398ca03060e5fe11c7647ae80ae258beeb (diff)
downloadmv-923633ae61b255c64dee9cf011382086453286d8.tar.gz
mv-923633ae61b255c64dee9cf011382086453286d8.tar.bz2
mv-923633ae61b255c64dee9cf011382086453286d8.tar.xz
mv-923633ae61b255c64dee9cf011382086453286d8.zip
add mods loading based on settings.
Diffstat (limited to 'src/gui/windows/updaterwindow.h')
-rw-r--r--src/gui/windows/updaterwindow.h10
1 files changed, 10 insertions, 0 deletions
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<UpdateFile> &updateFiles);
+
+ static void loadDirMods(const std::string &dir);
+
+ static void unloadMods(const std::string &dir);
+
private:
void download();