File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ void Patch_CEG()
49
49
Detours::X86::DetourFunction ((PBYTE)0x8EF04F , (PBYTE)&hk_inline_memcpy);
50
50
Detours::X86::DetourFunction ((PBYTE)0x8EF168 , (PBYTE)&hk_inline_memcpy2);
51
51
52
+ Detours::X86::DetourFunction ((PBYTE)0x8EE640 , (PBYTE)&sub_8EE640);
53
+
52
54
FixupFunction (0x0060CC10 , 0x004F20F0 );// CEGObfuscate<LiveStats_Init> => LiveStats_Init
53
55
FixupFunction (0x00580460 , 0x0079E6D0 );// CEGObfuscate<Con_Restricted_SetLists> => Con_Restricted_SetLists
54
56
}
@@ -119,6 +121,15 @@ void __declspec(naked) hk_inline_memcpy2()
119
121
}
120
122
}
121
123
124
+ void *sub_8EE640 (void *Nullptr1, void *Nullptr2)
125
+ {
126
+ if (Nullptr1 != nullptr || Nullptr2 != nullptr )
127
+ __debugbreak ();
128
+
129
+ *(void **)0xBA1C24 = Nullptr2;
130
+ return (void *)0xBA1C24 ;
131
+ }
132
+
122
133
void __fastcall sub_5CBF00 (void *thisptr, PVOID _EDX, DWORD address, size_t scanSize)
123
134
{
124
135
DWORD dwNew = GetNewAddress (address);
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ void hk_inline_memcpy();
6
6
void hk_inline_memcpy2 ();
7
7
void * hk_memcpy (void * dest , const void * src , size_t size );
8
8
9
+ void * sub_8EE640 (void * Nullptr1 , void * Nullptr2 );
10
+
9
11
void __fastcall sub_5CBF00 (void * thisptr , PVOID _EDX , DWORD address , size_t scanSize );
10
12
void __fastcall sub_661450 (void * thisptr , PVOID _EDX , DWORD address , size_t scanSize );
11
13
void __fastcall sub_4E9880 (void * thisptr , PVOID _EDX , DWORD address , size_t scanSize );
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ void R_RegisterCustomDvars()
37
37
if (r_noborder->current .enabled )
38
38
style = WS_VISIBLE | WS_POPUP;
39
39
40
- PatchMemory (0x006B7A74 , (PBYTE)&style, sizeof (DWORD));
40
+ PatchMemory (0x006B7A74 , (PBYTE)&style, sizeof (DWORD));// R_CreateWindow
41
+ PatchMemory (0x006B7EC1 , (PBYTE)&style, sizeof (DWORD));// R_ResizeWindow
41
42
}
42
43
43
44
void * rtn_R_RegisterDvars = (void *)0x006CA283 ;
You can’t perform that action at this time.
0 commit comments