|
|
@ -16,6 +16,7 @@ int main(int argc, char *argv[]) {
|
|
|
|
("ini,i", bpo::value<std::string>(), "morrowind.ini file")
|
|
|
|
("ini,i", bpo::value<std::string>(), "morrowind.ini file")
|
|
|
|
("cfg,c", bpo::value<std::string>(), "openmw.cfg file")
|
|
|
|
("cfg,c", bpo::value<std::string>(), "openmw.cfg file")
|
|
|
|
("output,o", bpo::value<std::string>()->default_value(""), "openmw.cfg file")
|
|
|
|
("output,o", bpo::value<std::string>()->default_value(""), "openmw.cfg file")
|
|
|
|
|
|
|
|
("game-files,g", "import esm and esp files")
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
bpo::variables_map vm;
|
|
|
|
bpo::variables_map vm;
|
|
|
@ -65,6 +66,10 @@ int main(int argc, char *argv[]) {
|
|
|
|
std::map<std::string, std::string>cfg = importer.loadCfgFile(cfgFile);
|
|
|
|
std::map<std::string, std::string>cfg = importer.loadCfgFile(cfgFile);
|
|
|
|
|
|
|
|
|
|
|
|
importer.merge(cfg, ini);
|
|
|
|
importer.merge(cfg, ini);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(vm.count("game-files")) {
|
|
|
|
|
|
|
|
importer.importGameFiles(cfg, ini);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "write to: " << outputFile << std::endl;
|
|
|
|
std::cout << "write to: " << outputFile << std::endl;
|
|
|
|
importer.writeToFile(outputFile, cfg);
|
|
|
|
importer.writeToFile(outputFile, cfg);
|
|
|
|