From 796911e67dc5b2e23c0cc047c01667668e7c3ba6 Mon Sep 17 00:00:00 2001 From: Project579 Date: Sun, 14 Aug 2022 22:49:40 +0200 Subject: [PATCH] iniimporter: Work around some old MSVC compiler bugs. --- apps/mwiniimporter/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/mwiniimporter/main.cpp b/apps/mwiniimporter/main.cpp index ffd663df6c..58b5a9e6c5 100644 --- a/apps/mwiniimporter/main.cpp +++ b/apps/mwiniimporter/main.cpp @@ -93,13 +93,13 @@ int wmain(int argc, wchar_t *wargv[]) { bpo::notify(vm); - std::filesystem::path iniFile(vm["ini"].as()); - std::filesystem::path cfgFile(vm["cfg"].as()); + std::filesystem::path iniFile(vm["ini"].as().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().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 - auto outputFile = vm["output"].as(); + std::filesystem::path outputFile = vm["output"].as().u8string(); // This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs. if(vm["output"].defaulted()) { - outputFile = vm["cfg"].as(); + outputFile = vm["cfg"].as().u8string(); // This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs. } if(!std::filesystem::exists(iniFile)) {