summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1c57f549..625b406d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -326,6 +326,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();
}
@@ -3290,7 +3293,8 @@ void MainWindow::testExtractBSA(int modIndex)
progress.show();
archive.extractAll(modInfo->absolutePath().toLocal8Bit().constData(),
- boost::bind(&MainWindow::extractProgress, this, boost::ref(progress), _1, _2));
+ boost::bind(&MainWindow::extractProgress, this, boost::ref(progress), _1, _2),
+ false);
if (result == BSA::ERROR_INVALIDHASHES) {
reportError(tr("This archive contains invalid hashes. Some files may be broken."));