filter fixed

This commit is contained in:
Blu3train 2024-02-02 18:28:58 +01:00
parent 70ee2e34fc
commit e7a0227418

View File

@ -5897,7 +5897,7 @@ bool Waffle3Filter(LPVOID data, DWORD *size, HookParam *, BYTE)
static std::string prevText; static std::string prevText;
if (LPSTR bs=cpp_strnstr(text, "\\", *len)) if (LPSTR bs=cpp_strnstr(text, "\\", *len))
if ( bs > text && *--bs >= 65 && *bs <= 122) // garbage text if (bs > text && !IsSJIS(text)) // garbage text
return false; return false;
if (prevText.find(text, 0, *len) != std::string::npos) // Check if the string is present in the previous one if (prevText.find(text, 0, *len) != std::string::npos) // Check if the string is present in the previous one