mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-03-16 00:53:17 +08:00
Inject side check ignore case
This commit is contained in:
@@ -242,7 +242,8 @@ BOOL __stdcall DllMain(HMODULE hInstance, DWORD fdwReason, LPVOID lpReserved)
|
|||||||
WCHAR szFileName[MAX_PATH]{};
|
WCHAR szFileName[MAX_PATH]{};
|
||||||
DWORD length = 0;
|
DWORD length = 0;
|
||||||
GetModuleFileNameW(NULL, szFileName, MAX_PATH);
|
GetModuleFileNameW(NULL, szFileName, MAX_PATH);
|
||||||
if (!(wcsstr(szFileName, L"YuanShen.exe") || wcsstr(szFileName, L"GenshinImpact.exe")))
|
CharUpperBuffW(szFileName, wcslen(szFileName));
|
||||||
|
if (!(wcsstr(szFileName, L"YUANSHEN.EXE") || wcsstr(szFileName, L"GENSHINIMPACT.EXE")))
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user