Skip to content

Commit 8661454

Browse files
committed
crash fix 2
1 parent be9d1e2 commit 8661454

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/dllmain.cpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ void Init()
5252

5353
if (bDisableGlobalLeaderboards)
5454
{
55-
auto pattern = hook::pattern("6A 00 68 ? ? ? ? E8 ? ? ? ? 8B 0F");
56-
injector::WriteMemory<uint8_t>(pattern.get_first(1), 0x01, true);
55+
//auto pattern = hook::pattern("6A 00 68 ? ? ? ? E8 ? ? ? ? 8B 0F");
56+
//injector::WriteMemory<uint8_t>(pattern.get_first(1), 0x01, true);
57+
//pattern = hook::pattern("6A 02 68 ? ? ? ? E8 ? ? ? ? 8B 0D");
58+
//injector::WriteMemory<uint8_t>(pattern.get_first(1), 0x00, true);
59+
//pattern = hook::pattern("83 F8 01 B8 ? ? ? ? 74 05 B8 ? ? ? ? C3");
60+
//injector::MakeNOP(pattern.get_first(8), 7, true);
61+
auto pattern = hook::pattern("8B 81 ? ? ? ? 83 F8 06");
62+
injector::MakeRET(pattern.get_first(0));
5763
}
5864
}
5965

0 commit comments

Comments
 (0)