summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4c66ccce..a39a497e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -322,6 +322,9 @@ MainWindow::MainWindow(const QString &exeName, QSettings &initSettings, QWidget
m_Tutorial.expose("modList", &m_ModList);
m_Tutorial.expose("espList", &m_PluginList);
+
+ // before we start loading plugins we, add the dll path to the dll search order
+ ::SetDllDirectoryW(ToWString(QDir::toNativeSeparators(qApp->applicationDirPath() + "/dlls")).c_str());
loadPlugins();
}