mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 13:39:42 +00:00
iniimporter: Don't convert paths to "std::string".
This commit is contained in:
parent
4e428dee12
commit
14a786bab0
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ int wmain(int argc, wchar_t *wargv[]) {
|
|||
std::filesystem::path cfgFile(vm["cfg"].as<Files::MaybeQuotedPath>());
|
||||
|
||||
// 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()) {
|
||||
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::ofstream file((sfs::path(outputFile)));
|
||||
std::ofstream file(outputFile);
|
||||
importer.writeToFile(file, cfg);
|
||||
}
|
||||
catch (std::exception& e)
|
||||
|
|
Loading…
Reference in a new issue