Skip to content

Commit

Permalink
crash fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed May 12, 2022
1 parent be9d1e2 commit 8661454
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ void Init()

if (bDisableGlobalLeaderboards)
{
auto pattern = hook::pattern("6A 00 68 ? ? ? ? E8 ? ? ? ? 8B 0F");
injector::WriteMemory<uint8_t>(pattern.get_first(1), 0x01, true);
//auto pattern = hook::pattern("6A 00 68 ? ? ? ? E8 ? ? ? ? 8B 0F");
//injector::WriteMemory<uint8_t>(pattern.get_first(1), 0x01, true);
//pattern = hook::pattern("6A 02 68 ? ? ? ? E8 ? ? ? ? 8B 0D");
//injector::WriteMemory<uint8_t>(pattern.get_first(1), 0x00, true);
//pattern = hook::pattern("83 F8 01 B8 ? ? ? ? 74 05 B8 ? ? ? ? C3");
//injector::MakeNOP(pattern.get_first(8), 7, true);
auto pattern = hook::pattern("8B 81 ? ? ? ? 83 F8 06");
injector::MakeRET(pattern.get_first(0));
}
}

Expand Down

0 comments on commit 8661454

Please sign in to comment.