Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/filesystem/SDL_filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static bool WildcardMatch(const char *pattern, const char *str, bool *matched_to
pch = *(++pattern);
}

*matched_to_dir = ((pch == '/') || (pch == '\0')); // end of string and the pattern is complete or failed at a '/'? We should descend into this directory.
*matched_to_dir = (pch == '/'); // end of string and the pattern failed at a '/'? We should descend into this directory.

return (pch == '\0'); // survived the whole pattern? That's a match!
}
Expand Down
Loading