diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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(); |