[saco] Implement/match SetForegroundWindowCrashFixHook()

This commit is contained in:
RD42 2024-10-14 18:10:20 +08:00
parent 73482c3d27
commit 963daecaf8

View File

@ -524,6 +524,23 @@ exitFn:
}
}
//-----------------------------------------------------------
NUDE SetForegroundWindowCrashFixHook()
{
__asm
{
mov eax, ds:0xC17054;
test eax, eax;
jz exitFn;
push 0x746929; // return address;
ret;
exitFn:
xor eax, eax;
ret;
}
}
//-----------------------------------------------------------
// used for correct report message using 100A1790 ; void __thiscall CGame::PlayCrimeReport