Skip to content

Commit

Permalink
Removed the precache all shaders patch on every game
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementDreptin committed Jun 7, 2021
1 parent 3cf9a2f commit 58d83ee
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions Hayzen/src/Games/Alpha/MW2/MW2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ namespace MW2

Sleep(200);

// Precache all shaders
Memory::Write<int>(0x82F3F280 + 0x1C, 1);

Memory::HookFunctionStart((DWORD*)0x8218B5F0, (DWORD*)SCR_DrawScreenFieldStub, (DWORD)SCR_DrawScreenFieldHook);
Memory::HookFunctionStart((DWORD*)0x822539C0, (DWORD*)Scr_NotifyStub, (DWORD)Scr_NotifyHook);
Memory::HookFunctionStart((DWORD*)0x822B4700, (DWORD*)SV_ExecuteClientCommandStub, (DWORD)SV_ExecuteClientCommandHook);
Expand Down
3 changes: 0 additions & 3 deletions Hayzen/src/Games/MW2/MW2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ namespace MW2

Sleep(200);

// Precache all shaders
Memory::Write<int>(0x83109D80 + 0x1C, 1);

// NOP cheat protection
Memory::Write<int>(0x8216906C, 0x60000000);
Memory::Write<int>(0x821690E4, 0x60000000);
Expand Down
3 changes: 0 additions & 3 deletions Hayzen/src/Games/MW3/MW3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ namespace MW3

Sleep(200);

// Precache all shaders
Memory::Write<int>(0x82FDA080 + 0x18, 1);

// NOP cheat protection
Memory::Write<int>(0x821ABA24, 0x60000000);
Memory::Write<int>(0x821ABA9C, 0x60000000);
Expand Down
3 changes: 0 additions & 3 deletions Hayzen/src/Games/SpecOps/MW2/MW2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ namespace MW2

Sleep(200);

// Precache all shaders
Memory::Write<int>(0x83166220 + 0x24, 1);

Memory::HookFunctionStart((DWORD*)0x821354B0, (DWORD*)SCR_DrawScreenFieldStub, (DWORD)SCR_DrawScreenFieldHook);
Memory::HookFunctionStart((DWORD*)0x821EFFD0, (DWORD*)ClientCommandStub, (DWORD)ClientCommandHook);
}
Expand Down
3 changes: 0 additions & 3 deletions Hayzen/src/Games/SpecOps/MW3/MW3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ namespace MW3

Sleep(200);

// Precache all shaders
Memory::Write<int>(0x83166220 + 0x24, 1);

Memory::HookFunctionStart((DWORD*)0x822E0488, (DWORD*)DrawMenuDebugTextStub, (DWORD)DrawMenuDebugTextHook);
Memory::HookFunctionStart((DWORD*)0x821FEFB0, (DWORD*)ClientCommandStub, (DWORD)ClientCommandHook);
}
Expand Down

0 comments on commit 58d83ee

Please sign in to comment.