mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 08:15:35 +00:00
iniimporter: Work around some old MSVC compiler bugs.
This commit is contained in:
parent
199bf233e8
commit
796911e67d
1 changed files with 4 additions and 4 deletions
|
@ -93,13 +93,13 @@ int wmain(int argc, wchar_t *wargv[]) {
|
||||||
|
|
||||||
bpo::notify(vm);
|
bpo::notify(vm);
|
||||||
|
|
||||||
std::filesystem::path iniFile(vm["ini"].as<Files::MaybeQuotedPath>());
|
std::filesystem::path iniFile(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::path cfgFile(vm["cfg"].as<Files::MaybeQuotedPath>());
|
std::filesystem::path cfgFile(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 no output is given, write back to cfg file
|
// if no output is given, write back to cfg file
|
||||||
auto outputFile = vm["output"].as<Files::MaybeQuotedPath>();
|
std::filesystem::path outputFile = 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()) {
|
if(vm["output"].defaulted()) {
|
||||||
outputFile = vm["cfg"].as<Files::MaybeQuotedPath>();
|
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(!std::filesystem::exists(iniFile)) {
|
if(!std::filesystem::exists(iniFile)) {
|
||||||
|
|
Loading…
Reference in a new issue