mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Setup logging before loading settings
This commit is contained in:
parent
cd6413c060
commit
70ab116880
@ -70,10 +70,8 @@ bool parseOptions(int argc, char** argv, OMW::Engine& engine, Files::Configurati
|
|||||||
}
|
}
|
||||||
|
|
||||||
cfgMgr.readConfiguration(variables, desc);
|
cfgMgr.readConfiguration(variables, desc);
|
||||||
Settings::Manager::load(cfgMgr);
|
|
||||||
|
|
||||||
setupLogging(cfgMgr.getLogPath(), "OpenMW");
|
setupLogging(cfgMgr.getLogPath(), "OpenMW");
|
||||||
MWGui::DebugWindow::startLogRecording();
|
|
||||||
|
|
||||||
Version::Version v
|
Version::Version v
|
||||||
= Version::getOpenmwVersion(variables["resources"]
|
= 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.
|
// MSVC 14.26 due to implementation bugs.
|
||||||
Log(Debug::Info) << v.describe();
|
Log(Debug::Info) << v.describe();
|
||||||
|
|
||||||
|
Settings::Manager::load(cfgMgr);
|
||||||
|
|
||||||
|
MWGui::DebugWindow::startLogRecording();
|
||||||
|
|
||||||
engine.setGrabMouse(!variables["no-grab"].as<bool>());
|
engine.setGrabMouse(!variables["no-grab"].as<bool>());
|
||||||
|
|
||||||
// Font encoding settings
|
// Font encoding settings
|
||||||
|
Loading…
Reference in New Issue
Block a user