From ad9fc6dda75ced36476d7a6a931d556a3470cefb Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Mon, 19 Sep 2022 23:33:49 +0100 Subject: set launcher directory and error on fail creating log files --- loader_wsock32_proxy/dllmain.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'loader_wsock32_proxy') 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; -- cgit v1.2.3