From 8e9e85574744b4e262c7b660d16bf00193fbcaaf Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 18 Apr 2024 20:07:01 +1000 Subject: [PATCH] CDImageM3u: Fix forward slash entries on Windows --- src/util/cd_image_m3u.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/cd_image_m3u.cpp b/src/util/cd_image_m3u.cpp index e4d3a7a92..2fb2cc839 100644 --- a/src/util/cd_image_m3u.cpp +++ b/src/util/cd_image_m3u.cpp @@ -99,7 +99,8 @@ bool CDImageM3u::Open(const char* path, bool apply_patches, Error* error) continue; Entry entry; - std::string entry_filename(line.begin() + start_offset, line.begin() + end_offset + 1); + std::string entry_filename = + Path::ToNativePath(std::string_view(line.begin() + start_offset, line.begin() + end_offset + 1)); entry.title = Path::GetFileTitle(entry_filename); if (!Path::IsAbsolute(entry_filename)) entry.filename = Path::BuildRelativePath(path, entry_filename);