Can't use CVars before the CVar system is initialized. (#5962)

This commit is contained in:
Malkierian
2025-11-14 12:45:48 -07:00
committed by GitHub
parent 6ccdfc6051
commit daeb3a84c7

View File

@@ -297,12 +297,12 @@ void OTRGlobals::Initialize() {
#else
auto defaultLogLevel = spdlog::level::info;
#endif
context->InitConfiguration();
context->InitConsoleVariables();
auto logLevel =
static_cast<spdlog::level::level_enum>(CVarGetInteger(CVAR_DEVELOPER_TOOLS("LogLevel"), defaultLogLevel));
context->InitLogging(logLevel, logLevel);
Ship::Context::GetInstance()->GetLogger()->set_pattern("[%H:%M:%S.%e] [%s:%#] [%l] %v");
context->InitConfiguration();
context->InitConsoleVariables();
context->InitGfxDebugger();
context->InitFileDropMgr();