mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
.
This commit is contained in:
parent
9ffae26df3
commit
149945a43e
@ -247,16 +247,18 @@ bool Atelier2attach_function()
|
||||
|
||||
bool Atelier2attach_function2()
|
||||
{
|
||||
// https://vndb.org/v7264
|
||||
// 禁断の病棟 特殊精神科医 遊佐惣介の診察記録
|
||||
auto addr = MemDbg::findCallerAddressAfterInt3((ULONG)TextOutA, processStartAddress, processStopAddress);
|
||||
if (addr == 0)
|
||||
return 0;
|
||||
auto addr = findiatcallormov((ULONG)TextOutA, processStartAddress, processStartAddress, processStopAddress);
|
||||
if (!addr)
|
||||
return false;
|
||||
auto faddr = MemDbg::findEnclosingAlignedFunction(addr);
|
||||
if (!faddr)
|
||||
return false;
|
||||
HookParam hp;
|
||||
hp.address = addr;
|
||||
hp.address = faddr;
|
||||
hp.offset = stackoffset(3);
|
||||
hp.type = USING_STRING | DATA_INDIRECT;
|
||||
|
||||
hp.type = USING_STRING; // https://vndb.org/v13691 // 肉牝R30 ~肉欲に堕ちた牝たち~
|
||||
if (addr - faddr > 0x40)
|
||||
hp.type |= DATA_INDIRECT; // https://vndb.org/v7264 // 禁断の病棟 特殊精神科医 遊佐惣介の診察記録
|
||||
return NewHook(hp, "Atelier KAGUYA");
|
||||
}
|
||||
bool Atelier2::attach_function()
|
||||
|
Loading…
x
Reference in New Issue
Block a user