summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-02-20 08:32:26 -0600
committerAndrew <forkk@forkk.net>2013-02-20 08:32:59 -0600
commitf71479ec33562c9a0ebbdb335bef5e2824a12710 (patch)
tree198479995279a2a9eaa04fce405ee05b0c7df482 /main.cpp
parent6e5017e48b633e20bbba61ac2e7cd58e693aec4e (diff)
downloadMultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar.gz
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar.lz
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar.xz
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.zip
Added stdinstance plugin and a ton of plugin stuff.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 6e840317..29c11e87 100644
--- a/main.cpp
+++ b/main.cpp
@@ -18,9 +18,12 @@
#include <QApplication>
#include "data/appsettings.h"
-
#include "data/loginresponse.h"
+#include "data/plugin/pluginmanager.h"
+
+#include "util/pathutils.h"
+
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
@@ -32,6 +35,11 @@ int main(int argc, char *argv[])
// Register meta types.
qRegisterMetaType<LoginResponse>("LoginResponse");
+
+ // Initialize plugins.
+ PluginManager::get().loadPlugins(PathCombine(qApp->applicationDirPath(), "plugins"));
+ PluginManager::get().initInstanceTypes();
+
MainWindow mainWin;
mainWin.show();