Setup logging before loading settings

depth-refraction
elsid 2 years ago
parent cd6413c060
commit 70ab116880
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -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<bool>());
// Font encoding settings

Loading…
Cancel
Save