mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
.
This commit is contained in:
parent
c374a881ed
commit
70a67e528f
@ -14,10 +14,21 @@ bool littlecheese::attach_function()
|
|||||||
addr = reverseFindBytes(align, sizeof(align), addr - 0x100, addr);
|
addr = reverseFindBytes(align, sizeof(align), addr - 0x100, addr);
|
||||||
if (addr == 0)
|
if (addr == 0)
|
||||||
return false;
|
return false;
|
||||||
HookParam hp;
|
if (*(DWORD *)(addr - 4) == 0x55575653)
|
||||||
hp.address = addr;
|
{
|
||||||
hp.offset = regoffset(ecx);
|
HookParam hp;
|
||||||
hp.split = regoffset(edx);
|
hp.address = addr - 4;
|
||||||
hp.type = USING_CHAR | CODEC_ANSI_BE | USING_SPLIT;
|
hp.offset = regoffset(ecx);
|
||||||
return NewHook(hp, "littlecheese");
|
hp.type = USING_CHAR | CODEC_ANSI_BE;
|
||||||
|
return NewHook(hp, "littlecheese");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
HookParam hp;
|
||||||
|
hp.address = addr;
|
||||||
|
hp.offset = regoffset(ecx);
|
||||||
|
hp.split = regoffset(edx);
|
||||||
|
hp.type = USING_CHAR | CODEC_ANSI_BE | NO_CONTEXT | USING_SPLIT;
|
||||||
|
return NewHook(hp, "littlecheese");
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user