From 88b8487d004dc72ae4d0c9dccd0a32cbf569da85 Mon Sep 17 00:00:00 2001 From: Craig Carnell <1188869+cscd98@users.noreply.github.com> Date: Wed, 2 Sep 2026 22:28:01 +0100 Subject: [PATCH] libretro: fix path for some games like MM9 on windows when using mingw --- Source/Core/Common/StringUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 6f270ca42324..434e48e2461c 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -849,7 +849,7 @@ std::u16string UTF8ToUTF16(std::string_view input) // This is a replacement for path::u8path, which is deprecated starting with C++20. std::filesystem::path StringToPath(std::string_view path) { -#ifdef _MSC_VER +#ifdef _WIN32 return std::filesystem::path(UTF8ToWString(path)); #else return std::filesystem::path(path);