Added a system to load news from MultiMC.org's RSS

Currently it doesn't show it anywhere in the UI. That's next.
This commit is contained in:
Andrew 2013-12-15 14:48:58 -06:00
parent 1e96a0c8eb
commit 0ee8f90d40
9 changed files with 409 additions and 1 deletions

View file

@ -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));