summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
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();