mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
savedata: fix dir name search with wildcard
This commit is contained in:
parent
17c47bcd96
commit
d7615ca86a
@ -345,7 +345,9 @@ static bool match(std::string_view str, std::string_view pattern) {
|
|||||||
if (*pat_it == '_') { // 1 character wildcard
|
if (*pat_it == '_') { // 1 character wildcard
|
||||||
++str_it;
|
++str_it;
|
||||||
++pat_it;
|
++pat_it;
|
||||||
} else if (*pat_it != *str_it) {
|
continue;
|
||||||
|
}
|
||||||
|
if (*pat_it != *str_it) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
++str_it;
|
++str_it;
|
||||||
|
Loading…
Reference in New Issue
Block a user