From e9cd5dfd84e6cdc091f4b3ac54c28f56937b2cb4 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 8 Apr 2023 13:59:21 +0200 Subject: [PATCH] (Windows) Converted forward slashes to backslashes for a file deletion log message --- es-app/src/guis/GuiGamelistOptions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 63173c125..c8d3a04a0 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -479,7 +479,12 @@ void GuiGamelistOptions::openMetaDataEd() }; deleteGameBtnFunc = [this, file] { +#if defined(_WIN64) + LOG(LogInfo) << "Deleting game file \"" + << Utils::String::replace(file->getFullPath(), "/", "\\") +#else LOG(LogInfo) << "Deleting game file \"" << file->getFullPath() +#endif << "\", all its media files and its gamelist.xml entry"; CollectionSystemsManager::getInstance()->deleteCollectionFiles(file); ViewController::getInstance()->getGamelistView(file->getSystem()).get()->removeMedia(file);