|
|
@ -145,7 +145,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
|
|
|
("fallback", bpo::value<FallbackMap>()->default_value(FallbackMap(), "")
|
|
|
|
("fallback", bpo::value<FallbackMap>()->default_value(FallbackMap(), "")
|
|
|
|
->multitoken()->composing(), "fallback values")
|
|
|
|
->multitoken()->composing(), "fallback values")
|
|
|
|
|
|
|
|
|
|
|
|
("no-grab", "Don't grab mouse cursor")
|
|
|
|
("no-grab", bpo::value<bool>()->implicit_value(true)->default_value(false), "Don't grab mouse cursor")
|
|
|
|
|
|
|
|
|
|
|
|
("export-fonts", bpo::value<bool>()->implicit_value(true)
|
|
|
|
("export-fonts", bpo::value<bool>()->implicit_value(true)
|
|
|
|
->default_value(false), "Export Morrowind .fnt fonts to PNG image and XML file in current directory")
|
|
|
|
->default_value(false), "Export Morrowind .fnt fonts to PNG image and XML file in current directory")
|
|
|
@ -181,7 +181,7 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
|
|
|
Version::Version v = Version::getOpenmwVersion(variables["resources"].as<Files::EscapeHashString>().toStdString());
|
|
|
|
Version::Version v = Version::getOpenmwVersion(variables["resources"].as<Files::EscapeHashString>().toStdString());
|
|
|
|
std::cout << v.describe() << std::endl;
|
|
|
|
std::cout << v.describe() << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
engine.setGrabMouse(!variables.count("no-grab"));
|
|
|
|
engine.setGrabMouse(!variables["no-grab"].as<bool>());
|
|
|
|
|
|
|
|
|
|
|
|
// Font encoding settings
|
|
|
|
// Font encoding settings
|
|
|
|
std::string encoding(variables["encoding"].as<Files::EscapeHashString>().toStdString());
|
|
|
|
std::string encoding(variables["encoding"].as<Files::EscapeHashString>().toStdString());
|
|
|
|