mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
.
This commit is contained in:
parent
4944421d76
commit
0867510416
@ -1548,17 +1548,7 @@ bool InsertBGI4Hook_2()
|
||||
return false;
|
||||
auto addrs = findxref_reverse_checkcallop(addr, processStartAddress, processStopAddress, 0xe8);
|
||||
if (1 != addrs.size())
|
||||
{
|
||||
HookParam hp;
|
||||
hp.address = addrs[0];
|
||||
hp.type = USING_STRING;
|
||||
hp.filter_fun = [](TextBuffer *buffer, HookParam *)
|
||||
{
|
||||
StringFilterBetween(buffer, "<", 1, ">", 1);
|
||||
};
|
||||
hp.offset = GETARG1;
|
||||
return NewHook(hp, "BGI");
|
||||
}
|
||||
return false;
|
||||
HookParam hp;
|
||||
hp.address = addrs[0] + 5;
|
||||
hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW;
|
||||
|
@ -104,17 +104,7 @@ bool BGIattach_function2()
|
||||
return false;
|
||||
auto addrs = findxref_reverse_checkcallop(addr, processStartAddress, processStopAddress, 0xe8);
|
||||
if (1 != addrs.size())
|
||||
{
|
||||
HookParam hp;
|
||||
hp.address = addrs[0];
|
||||
hp.type = USING_STRING;
|
||||
hp.filter_fun = [](TextBuffer *buffer, HookParam *)
|
||||
{
|
||||
StringFilterBetween(buffer, "<", 1, ">", 1);
|
||||
};
|
||||
hp.offset = GETARG1;
|
||||
return NewHook(hp, "BGI");
|
||||
}
|
||||
return false;
|
||||
HookParam hp;
|
||||
hp.address = addrs[0] + 5;
|
||||
hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW;
|
||||
|
Loading…
x
Reference in New Issue
Block a user