summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-11-24 18:41:35 +0100
committerPetr Mrázek <peterix@gmail.com>2013-11-24 18:41:35 +0100
commit82225a21e1b7f1671a42c1511032c59ecda0503f (patch)
treebed0663df62a7210da6928c50a6ba99aed53cd1f /MultiMC.cpp
parentca297fca79a7b1b96e41ba5abed4956af9383c16 (diff)
parent75e7932607bdd84d2867765eb6f07dcec95ee193 (diff)
downloadMultiMC-82225a21e1b7f1671a42c1511032c59ecda0503f.tar
MultiMC-82225a21e1b7f1671a42c1511032c59ecda0503f.tar.gz
MultiMC-82225a21e1b7f1671a42c1511032c59ecda0503f.tar.lz
MultiMC-82225a21e1b7f1671a42c1511032c59ecda0503f.tar.xz
MultiMC-82225a21e1b7f1671a42c1511032c59ecda0503f.zip
Merge branch 'feature_yggdrasil' into develop
Conflicts: gui/MainWindow.cpp logic/OneSixInstance.h Fix missing session id functionality for legacy and old onesix.
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 0aaf31bf..17981755 100644
--- a/MultiMC.cpp
+++ b/MultiMC.cpp
@@ -10,6 +10,7 @@
#include "gui/MainWindow.h"
#include "gui/dialogs/VersionSelectDialog.h"
#include "logic/lists/InstanceList.h"
+#include "logic/lists/MojangAccountList.h"
#include "logic/lists/IconList.h"
#include "logic/lists/LwjglVersionList.h"
#include "logic/lists/MinecraftVersionList.h"
@@ -146,6 +147,12 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
connect(InstDirSetting, SIGNAL(settingChanged(const Setting &, QVariant)),
m_instances.get(), SLOT(on_InstFolderChanged(const Setting &, QVariant)));
+ // and accounts
+ m_accounts.reset(new MojangAccountList(this));
+ QLOG_INFO() << "Loading accounts...";
+ m_accounts->setListFilePath("accounts.json", true);
+ m_accounts->loadList();
+
// init the http meta cache
initHttpMetaCache();