From daeb3a84c761fce35c157f154bf7097558733c04 Mon Sep 17 00:00:00 2001 From: Malkierian Date: Fri, 14 Nov 2025 12:45:48 -0700 Subject: [PATCH] Can't use CVars before the CVar system is initialized. (#5962) --- soh/soh/OTRGlobals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 213b99820..8f57b1c06 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -297,12 +297,12 @@ void OTRGlobals::Initialize() { #else auto defaultLogLevel = spdlog::level::info; #endif + context->InitConfiguration(); + context->InitConsoleVariables(); auto logLevel = static_cast(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();