Skip to content

Commit

Permalink
Fix missing header update.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 15, 2024
1 parent 756dfb6 commit cce5a60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/metahook.h
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ typedef struct metahook_api_s
*/
hook_t* (*VFTHookEx)(void** pVFTable, int iFuncIndex, void* pNewFuncAddr, void** pOrginalCall);

/*
Purpose : Patch E8/E9 call/jmp instruction and redirect the call target
*/
hook_t* (*InlinePatchRedirectBranch)(void *pInstructionAddress, void* pNewFuncAddr, void** pOrginalCall);

}metahook_api_t;

typedef struct mh_enginesave_s
Expand All @@ -439,7 +444,7 @@ void MH_Shutdown(void);
#include <ICommandLine.h>
#include <IRegistry.h>

#define METAHOOK_API_VERSION 101
#define METAHOOK_API_VERSION 102

typedef struct mh_interface_s
{
Expand Down

0 comments on commit cce5a60

Please sign in to comment.