summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
authorrobotbrain <robotbrainify@gmail.com>2014-09-29 20:05:44 -0400
committerrobotbrain <robotbrainify@gmail.com>2014-09-30 16:22:39 -0400
commitbbdf5c1395752802b6ba62116c9408e14527a5c6 (patch)
treebd9c5e9e28edaf15ed88a80b0f61b096d85004cc /MultiMC.cpp
parent382e167d646db75860ac21fabae5d3c1a7d4ddb6 (diff)
downloadMultiMC-bbdf5c1395752802b6ba62116c9408e14527a5c6.tar
MultiMC-bbdf5c1395752802b6ba62116c9408e14527a5c6.tar.gz
MultiMC-bbdf5c1395752802b6ba62116c9408e14527a5c6.tar.lz
MultiMC-bbdf5c1395752802b6ba62116c9408e14527a5c6.tar.xz
MultiMC-bbdf5c1395752802b6ba62116c9408e14527a5c6.zip
Translation downloading!
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r--MultiMC.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp
index d33fb5db..405aa9f6 100644
--- a/MultiMC.cpp
+++ b/MultiMC.cpp
@@ -47,6 +47,8 @@
#include "logger/QsLog.h"
#include "logger/QsLogDest.h"
+#include "logic/trans/TranslationDownloader.h"
+
#ifdef Q_OS_WIN32
#include <windows.h>
static const int APPDATA_BUFFER_SIZE = 1024;
@@ -213,6 +215,8 @@ MultiMC::MultiMC(int &argc, char **argv, bool root_override) : QApplication(argc
// initialize the status checker
m_statusChecker.reset(new StatusChecker());
+ m_translationChecker.reset(new TranslationDownloader());
+
// and instances
auto InstDirSetting = m_settings->getSetting("InstanceDir");
// instance path: check for problems with '!' in instance path and warn the user in the log
@@ -242,6 +246,8 @@ MultiMC::MultiMC(int &argc, char **argv, bool root_override) : QApplication(argc
// create the global network manager
m_qnam.reset(new QNetworkAccessManager(this));
+ m_translationChecker->downloadTranslations();
+
// init proxy settings
updateProxySettings();
@@ -537,6 +543,7 @@ void MultiMC::initHttpMetaCache()
m_metacache->addBase("liteloader", QDir("mods/liteloader").absolutePath());
m_metacache->addBase("skins", QDir("accounts/skins").absolutePath());
m_metacache->addBase("root", QDir(root()).absolutePath());
+ m_metacache->addBase("translations", QDir("translations").absolutePath());
m_metacache->Load();
}