summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalkierian <malkierian@gmail.com>2025-11-14 12:45:48 -0700
committerGitHub <noreply@github.com>2025-11-14 12:45:48 -0700
commitdaeb3a84c761fce35c157f154bf7097558733c04 (patch)
tree6e0836ff9d1055736369149e5f6872133dd9697d
parent6ccdfc6051274fbe160f5bc08e1ab1b0359ada3b (diff)
Can't use CVars before the CVar system is initialized. (#5962)
-rw-r--r--soh/soh/OTRGlobals.cpp4
1 files 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<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();