aboutsummaryrefslogtreecommitdiff
path: root/loader_wsock32_proxy/dllmain.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-09-19 23:33:49 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-09-19 23:33:49 +0100
commitad9fc6dda75ced36476d7a6a931d556a3470cefb (patch)
tree3759755cafaea6545e5d8ef2237b89f941c48587 /loader_wsock32_proxy/dllmain.cpp
parent9a35efe0b0f5e632d4f182dc490a587390539392 (diff)
downloadNorthstarLauncher-ad9fc6dda75ced36476d7a6a931d556a3470cefb.tar.gz
NorthstarLauncher-ad9fc6dda75ced36476d7a6a931d556a3470cefb.zip
set launcher directory and error on fail creating log files
Diffstat (limited to 'loader_wsock32_proxy/dllmain.cpp')
-rw-r--r--loader_wsock32_proxy/dllmain.cpp2
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;