mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 07:44:02 +08:00
fix
This commit is contained in:
parent
30b5d7eedc
commit
2d7c1c368b
@ -194,6 +194,11 @@ void TextHook::Send(uintptr_t lpDataBase)
|
|||||||
//清除jit hook特征,防止手动插入
|
//清除jit hook特征,防止手动插入
|
||||||
strcpy(hp.unityfunctioninfo,"");
|
strcpy(hp.unityfunctioninfo,"");
|
||||||
hp.emu_addr=0;
|
hp.emu_addr=0;
|
||||||
|
//清除module
|
||||||
|
hp.type &= ~MODULE_OFFSET;
|
||||||
|
hp.type &= ~FUNCTION_OFFSET;
|
||||||
|
strcpy(hp.function,"");
|
||||||
|
wcscpy(hp.module,L"");
|
||||||
|
|
||||||
NewHook(hp,hp.name);
|
NewHook(hp,hp.name);
|
||||||
hp.type|=HOOK_EMPTY;
|
hp.type|=HOOK_EMPTY;
|
||||||
|
@ -43,9 +43,10 @@ namespace
|
|||||||
std::optional<HookParam> ParseHCode(std::wstring HCode,std::optional<HookParam> hpo={})
|
std::optional<HookParam> ParseHCode(std::wstring HCode,std::optional<HookParam> hpo={})
|
||||||
{
|
{
|
||||||
auto hp=hpo?hpo.value():HookParam{};
|
auto hp=hpo?hpo.value():HookParam{};
|
||||||
if(HCode[0]=='L')
|
if(HCode[0]=='L'){
|
||||||
hp.type|=HOOK_RETURN;
|
hp.type|=HOOK_RETURN;
|
||||||
|
HCode.erase(0,1);
|
||||||
|
}
|
||||||
switch (HCode[0])
|
switch (HCode[0])
|
||||||
{
|
{
|
||||||
case L'B':
|
case L'B':
|
||||||
|
Loading…
Reference in New Issue
Block a user