mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
iniimporter: Don't convert paths to "std::string".
This commit is contained in:
parent
4e428dee12
commit
14a786bab0
@ -97,7 +97,7 @@ int wmain(int argc, wchar_t *wargv[]) {
|
|||||||
std::filesystem::path cfgFile(vm["cfg"].as<Files::MaybeQuotedPath>());
|
std::filesystem::path cfgFile(vm["cfg"].as<Files::MaybeQuotedPath>());
|
||||||
|
|
||||||
// if no output is given, write back to cfg file
|
// if no output is given, write back to cfg file
|
||||||
std::string outputFile(vm["output"].as<Files::MaybeQuotedPath>());
|
auto outputFile = vm["output"].as<Files::MaybeQuotedPath>();
|
||||||
if(vm["output"].defaulted()) {
|
if(vm["output"].defaulted()) {
|
||||||
outputFile = vm["cfg"].as<Files::MaybeQuotedPath>();
|
outputFile = vm["cfg"].as<Files::MaybeQuotedPath>();
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ int wmain(int argc, wchar_t *wargv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "write to: " << outputFile << std::endl;
|
std::cout << "write to: " << outputFile << std::endl;
|
||||||
std::ofstream file((sfs::path(outputFile)));
|
std::ofstream file(outputFile);
|
||||||
importer.writeToFile(file, cfg);
|
importer.writeToFile(file, cfg);
|
||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user