Fix SDL_GlobDirectory

This commit is contained in:
Alexander Batalov 2025-02-27 09:22:04 +03:00 committed by Sam Lantinga
parent eb89d0c8c3
commit 2b784b5bf6
1 changed files with 6 additions and 0 deletions

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.