@ -14,8 +14,8 @@ OpenMW also comes with OpenMW-CS, a replacement for Bethesda's Construction Set.
Font Licenses:
* DejaVuLGCSansMono.ttf: custom (see [files/data/fonts/DejaVuFontLicense.txt](https://gitlab.com/OpenMW/openmw/-/raw/master/files/data/fonts/DejaVuFontLicense.txt) for more information)
* OMWAyembedt.ttf: SIL Open Font License (see [files/data/fonts/OMWAyembedtFontLicense.txt](https://gitlab.com/OpenMW/openmw/-/raw/master/files/data/fonts/OMWAyembedtFontLicense.txt) for more information)
* Pelagiad.ttf: SIL Open Font License (see [files/data/fonts/PelagiadFontLicense.txt](https://gitlab.com/OpenMW/openmw/-/raw/master/files/data/fonts/PelagiadFontLicense.txt) for more information)
* DemonicLetters.ttf: SIL Open Font License (see [files/data/fonts/DemonicLettersFontLicense.txt](https://gitlab.com/OpenMW/openmw/-/raw/master/files/data/fonts/DemonicLettersFontLicense.txt) for more information)
* MysticCards.ttf: SIL Open Font License (see [files/data/fonts/MysticCardsFontLicense.txt](https://gitlab.com/OpenMW/openmw/-/raw/master/files/data/fonts/MysticCardsFontLicense.txt) for more information)
->default_value(false),"strict file system handling (no case folding)")
("encoding",bpo::value<std::string>()->
addOption("encoding",bpo::value<std::string>()->
default_value("win1252"),
"Character encoding used in OpenMW game messages:\n"
"\n\twin1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, Croatian, Serbian (Latin script), Romanian and Albanian languages\n"
"\n\twin1251 - Cyrillic alphabet such as Russian, Bulgarian, Serbian Cyrillic and other languages\n"
"\n\twin1252 - Western European (Latin) alphabet, used by default")
"\n\twin1252 - Western European (Latin) alphabet, used by default");
bpo::options_descriptiondesc("Inspect and extract from Morrowind ES files (ESM, ESP, ESS)\nSyntax: esmtool [options] mode infile [outfile]\nAllowed modes:\n dump\t Dumps all readable data from the input file.\n clone\t Clones the input file to the output file.\n comp\t Compares the given files.\n\nAllowed options");
desc.add_options()
("help,h","print help message.")
("version,v","print version information and quit.")
("raw,r",bpo::value<std::string>(),
bpo::options_descriptiondesc(R"(Inspect and extract from Morrowind ES files (ESM, ESP, ESS)
Syntax:esmtool[options]modeinfile[outfile]
Allowedmodes:
dumpDumpsallreadabledatafromtheinputfile.
cloneClonestheinputfiletotheoutputfile.
compComparesthegivenfiles.
Allowedoptions)");
autoaddOption=desc.add_options();
addOption("help,h","print help message.");
addOption("version,v","print version information and quit.");
addOption("raw,r",bpo::value<std::string>(),
"Show an unformatted list of all records and subrecords of given format:\n"
"\n\tTES3"
"\n\tTES4")
"\n\tTES4");
// The intention is that this option would interact better
// with other modes including clone, dump, and raw.
"\n\twin1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, Croatian, Serbian (Latin script), Romanian and Albanian languages\n"
"Character encoding used in OpenMW game messages:\n"
"\n\twin1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, Croatian, Serbian (Latin script), Romanian and Albanian languages\n"
"\n\twin1251 - Cyrillic alphabet such as Russian, Bulgarian, Serbian Cyrillic and other languages\n"
"\n\twin1252 - Western European (Latin) alphabet, used by default")
"\n\twin1252 - Western European (Latin) alphabet, used by default");
;
p_desc.add("ini",1).add("cfg",1);
@ -82,7 +84,6 @@ int wmain(int argc, wchar_t *wargv[]) {
std::filesystem::pathiniFile(vm["ini"].as<Files::MaybeQuotedPath>().u8string());// This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs.
std::filesystem::pathcfgFile(vm["cfg"].as<Files::MaybeQuotedPath>().u8string());// This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs.
std::filesystem::pathoutputFile=vm["output"].as<Files::MaybeQuotedPath>().u8string();// This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs.
if(vm["output"].defaulted()){
outputFile=vm["cfg"].as<std::string>();
outputFile=vm["cfg"].as<Files::MaybeQuotedPath>().u8string();// This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs.
}
if(!boost::filesystem::exists(iniFile)){
if(!std::filesystem::exists(iniFile)){
std::cerr<<"ini file does not exist"<<std::endl;
return-3;
}
if(!boost::filesystem::exists(cfgFile))
if(!std::filesystem::exists(cfgFile))
std::cerr<<"cfg file does not exist"<<std::endl;
MwIniImporterimporter;
@ -136,8 +137,8 @@ int wmain(int argc, wchar_t *wargv[]) {
importer.importArchives(cfg,ini);
}
std::cout<<"write to: "<< outputFile <<std::endl;
bfs::ofstreamfile((bfs::path(outputFile)));
std::cout<<"write to: "<<Files::pathToUnicodeString(outputFile)<<std::endl;
->default_value(false),"strict file system handling (no case folding)")
("encoding",bpo::value<std::string>()->
addOption("encoding",bpo::value<std::string>()->
default_value("win1252"),
"Character encoding used in OpenMW game messages:\n"
"\n\twin1250 - Central and Eastern European such as Polish, Czech, Slovak, Hungarian, Slovene, Bosnian, Croatian, Serbian (Latin script), Romanian and Albanian languages\n"
"\n\twin1251 - Cyrillic alphabet such as Russian, Bulgarian, Serbian Cyrillic and other languages\n"
"\n\twin1252 - Western European (Latin) alphabet, used by default")
"\n\twin1252 - Western European (Latin) alphabet, used by default");
mDocumentManager.setResourceDir(mResources=variables["resources"].as<Files::MaybeQuotedPath>().u8string());// This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs.
Files::PathContainer::value_typelocal(variables["data-local"].as<Files::MaybeQuotedPathContainer::value_type>().u8string());// This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs.