From b27f1fcd253fbc5409ebb2acae33844d18b932de Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 30 Apr 2023 12:53:39 +0200 Subject: [PATCH] (Windows) Converted forward slashes to backslashes for a log message --- es-app/src/SystemData.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 86d5d5ffd..fa016d789 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -833,13 +833,15 @@ void SystemData::loadSortingConfig() } for (auto& path : paths) { - LOG(LogInfo) << "Parsing systems sorting file \"" << path << "\"..."; - - pugi::xml_document doc; #if defined(_WIN64) + LOG(LogInfo) << "Parsing systems sorting file \"" << Utils::String::replace(path, "/", "\\") + << "\"..."; + pugi::xml_document doc; const pugi::xml_parse_result& res { doc.load_file(Utils::String::stringToWideString(path).c_str())}; #else + LOG(LogInfo) << "Parsing systems sorting file \"" << path << "\"..."; + pugi::xml_document doc; const pugi::xml_parse_result& res {doc.load_file(path.c_str())}; #endif if (!res) {