This commit is contained in:
恍兮惚兮 2024-12-20 12:50:42 +08:00
parent 74f276dbe5
commit 0b1cd7f368

View File

@ -108,6 +108,8 @@ bool BGIattach_function2()
HookParam hp;
hp.address = addrs[0] + 5;
hp.type = CODEC_UTF16 | USING_STRING | EMBED_ABLE | EMBED_AFTER_NEW;
// 虽然不知道什么原因但会正确分成三个thread: name+historytext, text, skiptext且ret值固定所以不NO_CONTEXT比较好
// EnclosingAlignedFunction r8 sjit 会分成2个: name+historytext+skiptext, text所以不如不align
hp.embed_hook_font = F_TextOutW | F_GetTextExtentPoint32W;
hp.filter_fun = BGI7Filter;
hp.offset = regoffset(rax);