Inject side check ignore case

This commit is contained in:
DismissedLight
2025-03-28 10:58:39 +08:00
parent 8a39ad0a77
commit 1c821620bf

View File

@@ -242,7 +242,8 @@ BOOL __stdcall DllMain(HMODULE hInstance, DWORD fdwReason, LPVOID lpReserved)
WCHAR szFileName[MAX_PATH]{};
DWORD length = 0;
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;
}