This commit is contained in:
恍兮惚兮 2024-05-10 15:39:46 +08:00
parent 30b5d7eedc
commit 2d7c1c368b
2 changed files with 8 additions and 2 deletions

View File

@ -194,6 +194,11 @@ void TextHook::Send(uintptr_t lpDataBase)
//清除jit hook特征防止手动插入
strcpy(hp.unityfunctioninfo,"");
hp.emu_addr=0;
//清除module
hp.type &= ~MODULE_OFFSET;
hp.type &= ~FUNCTION_OFFSET;
strcpy(hp.function,"");
wcscpy(hp.module,L"");
NewHook(hp,hp.name);
hp.type|=HOOK_EMPTY;

View File

@ -43,9 +43,10 @@ namespace
std::optional<HookParam> ParseHCode(std::wstring HCode,std::optional<HookParam> hpo={})
{
auto hp=hpo?hpo.value():HookParam{};
if(HCode[0]=='L')
if(HCode[0]=='L'){
hp.type|=HOOK_RETURN;
HCode.erase(0,1);
}
switch (HCode[0])
{
case L'B':