diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-19 23:33:49 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-19 23:33:49 +0100 |
commit | ad9fc6dda75ced36476d7a6a931d556a3470cefb (patch) | |
tree | 3759755cafaea6545e5d8ef2237b89f941c48587 /loader_wsock32_proxy/dllmain.cpp | |
parent | 9a35efe0b0f5e632d4f182dc490a587390539392 (diff) | |
download | NorthstarLauncher-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.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; |