From 28589a8a22bd942fab0991cc6803cde3acfd469c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 14 Nov 2024 15:51:46 +0800 Subject: [PATCH] codex --- cpp/LunaHook/LunaHook/engine32/CodeX.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/LunaHook/LunaHook/engine32/CodeX.cpp b/cpp/LunaHook/LunaHook/engine32/CodeX.cpp index cc50db8820..81b41cd2c9 100644 --- a/cpp/LunaHook/LunaHook/engine32/CodeX.cpp +++ b/cpp/LunaHook/LunaHook/engine32/CodeX.cpp @@ -134,8 +134,9 @@ namespace HookParam hp; hp.address = addr; hp.offset = get_stack(1); - hp.type = USING_STRING | FULL_STRING | NO_CONTEXT; - // 这个可以提取到人名,但是会把一堆字体名给hook进去,所以不要内嵌 + hp.split = get_stack(2); + hp.type = USING_STRING | FULL_STRING | NO_CONTEXT | USING_SPLIT | EMBED_ABLE | EMBED_AFTER_OVERWRITE; + hp.hook_font = F_GetGlyphOutlineA; hp.filter_fun = CodeXFilter; return NewHook(hp, "CodeX2"); }