Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
issues/41
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed May 22, 2024
1 parent 8fe1188 commit cdc2078
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LunaHook/engine32/Triangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ bool Triangle::attach_function() {
if((DWORD)addr!=(DWORD)TextOutA)return false;
if(auto addr=MemDbg::findEnclosingAlignedFunction(stack->retaddr))
{
if(*(BYTE*)(addr-2)==0xeb)//jmp xx, MONSTER PARK~化け物に魅入られし姫~,在函数中间中断
addr=MemDbg::findEnclosingAlignedFunction_strict(stack->retaddr);
if(!addr)return true;
HookParam hp;
hp.address=addr;
hp.offset=get_stack(4);
Expand Down

0 comments on commit cdc2078

Please sign in to comment.