Skip to content

Commit

Permalink
hud disable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ermaccer committed Dec 19, 2021
1 parent 9bb26e9 commit 6fdd644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion I2Hook/code/dcf2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void Hooks::HookDispatch(int64 ptr, int a2)
int64 Hooks::HookSetProperty(int64 ptr, char * name, int64 unk)
{
hud_property = ptr;
return ((int64(__fastcall*)(int64, char*, int64))_addr(0x1421D81E0))(ptr, name, unk);
return ((int64(__fastcall*)(int64, char*, int64))_addr(0x1421DFC80))(ptr, name, unk);
}

void Hooks::HookReadPropertyValue(int64 ptr, int* unk, int* value)
Expand Down
2 changes: 1 addition & 1 deletion I2Hook/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void OnInitializeHook()
InjectHook(_addr(0x14206A39E), tramp->Jump(&MKCamera::HookedSetRotation));

InjectHook(_addr(0x142218B00), tramp->Jump(Hooks::HookReadPropertyValue), PATCH_JUMP);
InjectHook(_addr(0x1419C373F), tramp->Jump(Hooks::HookSetProperty));
InjectHook(_addr(0x1419C3788), tramp->Jump(Hooks::HookSetProperty));

InjectHook(_addr(0x141FD85E0), tramp->Jump(Hooks::HookDispatch));

Expand Down

0 comments on commit 6fdd644

Please sign in to comment.