mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-02-16 23:20:09 +01:00
Change CTString.Match to treat backslashes as slash (fixes Netrisca categories for new messages)
This commit is contained in:
parent
87a67eccf5
commit
98ebac941a
4
Sources/Engine/Base/CTString.cpp
Normal file → Executable file
4
Sources/Engine/Base/CTString.cpp
Normal file → Executable file
@ -639,7 +639,9 @@ BOOL CTString::Matches(const char *strOther) const
|
|||||||
q = 0;
|
q = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tolower(*m) != tolower(*n)) && ((*m != '?') || q)) {
|
// also, '\\' in mask should match '/' in name, for unix compatibility
|
||||||
|
if (((tolower(*m) != tolower(*n)) && ((*m!='\\') && (*n!='/')))
|
||||||
|
&& ((*m != '?') || q)) {
|
||||||
if (!wild) {
|
if (!wild) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user