From 2b784b5bf65c0cd72c8a6013800582b28e8a7d52 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 27 Feb 2025 09:22:04 +0300 Subject: [PATCH] Fix SDL_GlobDirectory --- src/filesystem/SDL_filesystem.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/filesystem/SDL_filesystem.c b/src/filesystem/SDL_filesystem.c index 75556524d9..2dc39283c6 100644 --- a/src/filesystem/SDL_filesystem.c +++ b/src/filesystem/SDL_filesystem.c @@ -188,6 +188,12 @@ static bool WildcardMatch(const char *pattern, const char *str, bool *matched_to sch = *str; pch = *pattern; } + +#if defined(SDL_PLATFORM_WINDOWS) + if (sch == '\\') { + sch = '/'; + } +#endif } // '*' at the end can be ignored, they are allowed to match nothing.