forked from Public-Mirror/Textractor
fix finding js hook
This commit is contained in:
parent
4ab197c374
commit
29367928c3
@ -65,22 +65,8 @@ bool DeterminePCEngine()
|
||||
else for (int i = 0; i < 50; ++i)
|
||||
if (HMODULE module = GetModuleHandleW((DXVersion + L"_" + std::to_wstring(i)).c_str())) PcHooks::hookD3DXFunctions(module);
|
||||
|
||||
if (GetProcAddress((HMODULE)processStartAddress, "?Write@String@v8@@QBEHPAGHHH@Z"))
|
||||
{
|
||||
InsertV8Hook((HMODULE)processStartAddress);
|
||||
return true;
|
||||
}
|
||||
if (HMODULE module = GetModuleHandleW(L"node.dll"))
|
||||
{
|
||||
InsertV8Hook(module);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (HMODULE module = GetModuleHandleW(L"nw.dll"))
|
||||
{
|
||||
InsertV8Hook(module);
|
||||
return true;
|
||||
}
|
||||
for (HMODULE module : Array<HMODULE>{ (HMODULE)processStartAddress, GetModuleHandleW(L"node.dll"), GetModuleHandleW(L"nw.dll") })
|
||||
if (GetProcAddress(module, "?Write@String@v8@@QBEHPAGHHH@Z")) return InsertV8Hook(module);
|
||||
|
||||
if (InsertMonoHooks()) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user