From c643d7979d4f6f30bb8cb7fb3c7eeaf555306bdd Mon Sep 17 00:00:00 2001 From: Erusman Date: Tue, 7 Sep 2021 20:08:23 -0700 Subject: [PATCH] Add client_d.cfg so we can .include custom 'debug.cfg' that only the debug client can use. --- .../client/application/SwgClient/src/win32/ClientMain.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/client/application/SwgClient/src/win32/ClientMain.cpp b/src/game/client/application/SwgClient/src/win32/ClientMain.cpp index 998321c25..5552f5755 100644 --- a/src/game/client/application/SwgClient/src/win32/ClientMain.cpp +++ b/src/game/client/application/SwgClient/src/win32/ClientMain.cpp @@ -157,7 +157,11 @@ int ClientMain( data.windowSmallIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON2)); data.hInstance = hInstance; data.commandLine = lpCmdLine; + #if DEBUG_LEVEL DEBUG_LEVEL_DEBUG + data.configFile = "client_d.cfg"; + #else data.configFile = "client.cfg"; + #endif data.clockUsesSleep = true; data.minFrameRate = 1.f; data.frameRateLimit = 144.f; @@ -165,7 +169,7 @@ int ClientMain( data.demoMode = true; #endif data.writeMiniDumps = true; // SWG Source Change - Just always write crash log .txt files, there's no reason not to - + SetupSharedFoundation::install(data); REPORT_LOG(true, ("ClientMain: Command Line = \"%s\"\n", lpCmdLine));