diff --git a/Windows/main.cpp b/Windows/main.cpp index f91476545f..50b20cd3a2 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -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));