summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-12-15 14:48:58 -0600
committerAndrew <forkk@forkk.net>2013-12-15 14:50:27 -0600
commit0ee8f90d40f5b3ddb177286c9066a4e59748c681 (patch)
tree43bdb631834ec7c1251a944b7b8b17f8a5db201c /MultiMC.cpp
parent1e96a0c8eba2d932e08a33ec909cf8141f1aaa43 (diff)
downloadMultiMC-0ee8f90d40f5b3ddb177286c9066a4e59748c681.tar
MultiMC-0ee8f90d40f5b3ddb177286c9066a4e59748c681.tar.gz
MultiMC-0ee8f90d40f5b3ddb177286c9066a4e59748c681.tar.lz
MultiMC-0ee8f90d40f5b3ddb177286c9066a4e59748c681.tar.xz
MultiMC-0ee8f90d40f5b3ddb177286c9066a4e59748c681.zip
Added a system to load news from MultiMC.org's RSS
Currently it doesn't show it anywhere in the UI. That's next.
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r--MultiMC.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp
index 2c9e74dd..52bf4cb9 100644
--- a/MultiMC.cpp
+++ b/MultiMC.cpp
@@ -18,6 +18,8 @@
#include "logic/lists/MinecraftVersionList.h"
#include "logic/lists/ForgeVersionList.h"
+#include "logic/news/NewsChecker.h"
+
#include "logic/InstanceLauncher.h"
#include "logic/net/HttpMetaCache.h"
@@ -147,6 +149,9 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv),
// initialize the updater
m_updateChecker.reset(new UpdateChecker());
+ // initialize the news checker
+ m_newsChecker.reset(new NewsChecker(NEWS_RSS_URL));
+
// and instances
auto InstDirSetting = m_settings->getSetting("InstanceDir");
m_instances.reset(new InstanceList(InstDirSetting->get().toString(), this));