Enable early logs on Windows (just stuff them in the thread queue)

This commit is contained in:
Henrik Rydgård 2024-11-27 16:02:56 +01:00
parent 3b463446ab
commit 4e9e767e41

View file

@ -954,6 +954,8 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
}
}
// This will be overridden by the actual config. But we do want to log during startup.
g_Config.bEnableLogging = true;
LogManager::Init(&g_Config.bEnableLogging);
// On Win32 it makes more sense to initialize the system directories here
@ -962,7 +964,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
InitMemstickDirectory();
CreateSysDirectories();
// Load config up here, because those changes below would be overwritten
// if it's not loaded here first.
g_Config.SetSearchPath(GetSysDirectory(DIRECTORY_SYSTEM));