Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ermaccer authored Aug 12, 2020
1 parent 29ba164 commit 78839d9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ bool __fastcall SetFlagNull()
}



void OnInitializeHook()
{
AllocConsole();
Expand All @@ -47,14 +46,7 @@ void OnInitializeHook()
printf("I2Hook::OnInitializeHook() | Game detected: %s\n", (char*)GetMKXAddr(0x143455150));
Trampoline* tramp = Trampoline::MakeTrampoline(GetModuleHandle(nullptr));

Patch<char>(GetMKXAddr(0x147EC2FCC + 6), 0);
Nop(GetMKXAddr(0x148384D0F), 0x148384D25 - 0x148384D0F);
Nop(GetMKXAddr(0x148384D2F), 5);
// 60 fps
Patch<char>(GetMKXAddr(0x145EDC870 + 1), 0);
InjectHook(GetMKXAddr(0x14A370B70), tramp->Jump(SetFlagNull), PATCH_JUMP);



}

0 comments on commit 78839d9

Please sign in to comment.