summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-02-25 17:53:48 +0100
committerTannin <devnull@localhost>2015-02-25 17:53:48 +0100
commitce228e512cfd2b249a1ebc2ef0e576825afb29a0 (patch)
tree082d3c00b7059c7d2e8517d3f45c42f7353a1907 /src/main.cpp
parent1579e4dcb088be971c5d780062c5d7449536f23c (diff)
- No longer setting the dll directory as a windows search folder for dlls because
that appears to remove another search folder AND the configured seach folders seem to be inherited by processes started from MO (both confirmed only in windows 8.1)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8507d725..bc89375e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -323,8 +323,6 @@ int main(int argc, char *argv[])
}
}
- application.setLibraryPaths(QStringList() << (application.applicationDirPath() + "/dlls"));
-
SetUnhandledExceptionFilter(MyUnhandledExceptionFilter);
if (!HaveWriteAccess(ToWString(application.applicationDirPath()))) {
@@ -351,6 +349,9 @@ int main(int argc, char *argv[])
splash.show();
{ // extend path to include dll directory so plugins don't need a manifest
+ // (using AddDllDirectory would be an alternative to this but it seems fairly complicated esp.
+ // since it isn't easily accessible on Windows < 8
+ // SetDllDirectory replaces other search directories and this seems to propagate to child processes)
static const int BUFSIZE = 4096;
boost::scoped_array<TCHAR> oldPath(new TCHAR[BUFSIZE]);