Fix SDL_GlobDirectory

This commit is contained in:
Alexander Batalov authored and Sam Lantinga committed 2025-02-27 07:10:09 -08:00
1 parent eb89d0c8c3
commit 2b784b5bf6
1 file changed
+6
+6
View File
@@ -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.