mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fix SDL_GlobDirectory
This commit is contained in:

committed by
Sam Lantinga

parent
eb89d0c8c3
commit
2b784b5bf6
@@ -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.
|
||||
|
Reference in New Issue
Block a user