From f71479ec33562c9a0ebbdb335bef5e2824a12710 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 20 Feb 2013 08:32:26 -0600 Subject: Added stdinstance plugin and a ton of plugin stuff. --- main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 6e840317..29c11e87 100644 --- a/main.cpp +++ b/main.cpp @@ -18,9 +18,12 @@ #include #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"); + + // Initialize plugins. + PluginManager::get().loadPlugins(PathCombine(qApp->applicationDirPath(), "plugins")); + PluginManager::get().initInstanceTypes(); + MainWindow mainWin; mainWin.show(); -- cgit v1.2.3 From dd2e836b4cf4cfa043f9ea2911f58f1d22d4e282 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 20 Feb 2013 19:10:09 -0600 Subject: Split MultiMC up into a few separate libraries. Fixed plugin system. Tons of other stuff... --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 29c11e87..b78774a8 100644 --- a/main.cpp +++ b/main.cpp @@ -17,12 +17,12 @@ #include "gui/mainwindow.h" #include -#include "data/appsettings.h" +#include "appsettings.h" #include "data/loginresponse.h" #include "data/plugin/pluginmanager.h" -#include "util/pathutils.h" +#include "pathutils.h" int main(int argc, char *argv[]) { -- cgit v1.2.3