diff options
author | p0358 <p0358@users.noreply.github.com> | 2022-09-19 01:56:21 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-20 00:07:12 +0200 |
commit | 212f50df366d35fa91cc78be3451c7836c9b3faa (patch) | |
tree | 2175ad2596a983e054d97534bad9f03e00b26a7a /loader_wsock32_proxy/dllmain.cpp | |
parent | e7325406e1e8a4f42da094ba1c1256d7c9c2fbcb (diff) | |
download | NorthstarLauncher-212f50df366d35fa91cc78be3451c7836c9b3faa.tar.gz NorthstarLauncher-212f50df366d35fa91cc78be3451c7836c9b3faa.zip |
Set current directory properly (#275)v1.9.7-rc2
Diffstat (limited to 'loader_wsock32_proxy/dllmain.cpp')
-rw-r--r-- | loader_wsock32_proxy/dllmain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loader_wsock32_proxy/dllmain.cpp b/loader_wsock32_proxy/dllmain.cpp index 7feb278d..c5610042 100644 --- a/loader_wsock32_proxy/dllmain.cpp +++ b/loader_wsock32_proxy/dllmain.cpp @@ -39,6 +39,8 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD reason, LPVOID) return true; } + SetCurrentDirectoryW(exePath); + if (!ProvisionNorthstar()) // does not call InitialiseNorthstar yet, will do it on LauncherMain hook return true; |