From 70ab1168804c070d5f693070571ef0e20664a5df Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 27 Mar 2023 09:52:22 +0200 Subject: [PATCH] Setup logging before loading settings --- apps/openmw/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index cc51462322..6f327a5dd4 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -70,10 +70,8 @@ bool parseOptions(int argc, char** argv, OMW::Engine& engine, Files::Configurati } cfgMgr.readConfiguration(variables, desc); - Settings::Manager::load(cfgMgr); setupLogging(cfgMgr.getLogPath(), "OpenMW"); - MWGui::DebugWindow::startLogRecording(); Version::Version v = Version::getOpenmwVersion(variables["resources"] @@ -82,6 +80,10 @@ bool parseOptions(int argc, char** argv, OMW::Engine& engine, Files::Configurati // MSVC 14.26 due to implementation bugs. Log(Debug::Info) << v.describe(); + Settings::Manager::load(cfgMgr); + + MWGui::DebugWindow::startLogRecording(); + engine.setGrabMouse(!variables["no-grab"].as()); // Font encoding settings