mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 04:45:32 +00:00
open file for writing AFTER reading it :)
This commit is contained in:
parent
89565bacd1
commit
16674ad141
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,6 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
MwIniImporter importer;
|
||||
importer.setVerbose(vm.count("verbose"));
|
||||
boost::iostreams::stream<boost::iostreams::file_sink> file(outputFile);
|
||||
|
||||
MwIniImporter::multistrmap ini = importer.loadIniFile(iniFile);
|
||||
MwIniImporter::multistrmap cfg = importer.loadCfgFile(cfgFile);
|
||||
|
@ -59,6 +58,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
std::cout << "write to: " << outputFile << std::endl;
|
||||
boost::iostreams::stream<boost::iostreams::file_sink> file(outputFile);
|
||||
importer.writeToFile(file, cfg);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue