summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-16 00:54:39 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-16 00:54:39 +0200
commitd38b90530b3ba3a49c4eb072eb344ae2b0836913 (patch)
tree5dd07e59ae1bc8392a773ec8fec6b6a3aa7e4840 /MultiMC.cpp
parent7721c57e5e1093a3d8597b6b6f30c97d2aa3d8a5 (diff)
downloadMultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar.gz
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar.lz
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.tar.xz
MultiMC-d38b90530b3ba3a49c4eb072eb344ae2b0836913.zip
Forge version list implementation. Needs integration and testing.
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r--MultiMC.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp
index b49773a1..08e5ed25 100644
--- a/MultiMC.cpp
+++ b/MultiMC.cpp
@@ -9,6 +9,10 @@
#include "gui/mainwindow.h"
#include "logic/lists/InstanceList.h"
#include "logic/lists/IconList.h"
+#include "logic/lists/LwjglVersionList.h"
+#include "logic/lists/MinecraftVersionList.h"
+#include "logic/lists/ForgeVersionList.h"
+
#include "logic/InstanceLauncher.h"
#include "logic/net/HttpMetaCache.h"
@@ -158,6 +162,21 @@ MultiMC::~MultiMC()
delete m_qt_translator;
m_qt_translator = nullptr;
}
+ if(m_icons)
+ {
+ delete m_icons;
+ m_icons = nullptr;
+ }
+ if(m_lwjgllist)
+ {
+ delete m_lwjgllist;
+ m_lwjgllist = nullptr;
+ }
+ if(m_minecraftlist)
+ {
+ delete m_minecraftlist;
+ m_minecraftlist = nullptr;
+ }
delete m_settings;
delete m_metacache;
}
@@ -276,6 +295,32 @@ IconList* MultiMC::icons()
return m_icons;
}
+LWJGLVersionList* MultiMC::lwjgllist()
+{
+ if ( !m_lwjgllist )
+ {
+ m_lwjgllist = new LWJGLVersionList();
+ }
+ return m_lwjgllist;
+}
+ForgeVersionList* MultiMC::forgelist()
+{
+ if ( !m_forgelist )
+ {
+ m_forgelist = new ForgeVersionList();
+ }
+ return m_forgelist;
+}
+
+MinecraftVersionList* MultiMC::minecraftlist()
+{
+ if ( !m_minecraftlist )
+ {
+ m_minecraftlist = new MinecraftVersionList();
+ }
+ return m_minecraftlist;
+}
+
int main(int argc, char *argv[])
{