Skip to content

Commit

Permalink
Remove unused patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Oct 28, 2024
1 parent edba159 commit 3c5d23e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions Source/MemoryPatterns/Linux/ClientPatternsLinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ struct ClientPatterns {
return clientPatterns
.template addPattern<MainMenuPanelPointer, CodePattern{"83 FB ? 75 ? 48 8D 05 ? ? ? ? 48 8B 00"}.add(8).abs()>()
.template addPattern<HudPanelPointer, CodePattern{"41 C6 84 24 ? ? ? ? ? 4C 89 25 ? ? ? ? E8"}.add(12).abs()>()
.template addPattern<LoopModeGamePointer, CodePattern{"48 89 1D ? ? ? ? 48 8D 65 F0"}.add(3).abs()>()
.template addPattern<GlobalVarsPointer, CodePattern{"8D ? ? ? ? ? 48 89 35 ? ? ? ? 48 89 ? ? C3"}.add(9).abs()>()
.template addPattern<ClientModePointer, CodePattern{"48 8D 05 ? ? ? ? 4C 89 E7 48 89 05"}.add(3).abs()>()
.template addPattern<GetWorldSessionInClientMode, CodePattern{"FF 10 49 89 C5 48 85 C0 0F 84"}.add(2)>()
.template addPattern<TransformTranslate3dVMT, CodePattern{"48 8D 0D ? ? ? ? 48 89 08 48 89 50 08 48 8B 53 10"}.add(3).abs()>()
.template addPattern<TransformScale3dVMT, CodePattern{"48 8B 53 08 48 8D 0D ? ? ? ? F3 0F 10 43"}.add(7).abs()>()
.template addPattern<WorldToProjectionMatrixPointer, CodePattern{"48 8D 05 ? ? ? ? 4C 8D 05 ? ? ? ? 48 8D 0D"}.add(10).abs()>()
Expand Down
4 changes: 0 additions & 4 deletions Source/MemoryPatterns/PatternTypes/ClientPatternTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
#include <CS2/Classes/Glow.h>
#include <CS2/Classes/VMatrix.h>
#include <CS2/Panorama/CPanel2D.h>
#include <Utils/ReturnAddress.h>
#include <Utils/StrongTypeAlias.h>

STRONG_TYPE_ALIAS(MainMenuPanelPointer, cs2::CPanel2D**);
STRONG_TYPE_ALIAS(HudPanelPointer, cs2::CPanel2D**);
STRONG_TYPE_ALIAS(LoopModeGamePointer, cs2::CLoopModeGame**);
STRONG_TYPE_ALIAS(GlobalVarsPointer, cs2::GlobalVars**);
STRONG_TYPE_ALIAS(ClientModePointer, cs2::ClientModeCSNormal*);
STRONG_TYPE_ALIAS(GetWorldSessionInClientMode, ReturnAddress);
STRONG_TYPE_ALIAS(TransformTranslate3dVMT, const void*);
STRONG_TYPE_ALIAS(TransformScale3dVMT, const void*);
STRONG_TYPE_ALIAS(WorldToProjectionMatrixPointer, cs2::VMatrix*);
Expand Down
3 changes: 0 additions & 3 deletions Source/MemoryPatterns/Windows/ClientPatternsWindows.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ struct ClientPatterns {
return clientPatterns
.template addPattern<MainMenuPanelPointer, CodePattern{"48 83 EC ? 48 8B 05 ? ? ? ? 48 8D 15"}.add(7).abs()>()
.template addPattern<HudPanelPointer, CodePattern{"89 ? ? ? ? ? C6 ? ? ? ? ? ? 48 89 ? ? ? ? ? E8 ? ? ? ? 48"}.add(16).abs()>()
.template addPattern<LoopModeGamePointer, CodePattern{"48 8B 0D ? ? ? ? 44 0F 28 ? 24"}.add(3).abs()>()
.template addPattern<GlobalVarsPointer, CodePattern{"48 8B 05 ? ? ? ? 0F 57 C0 8B 48"}.add(3).abs()>()
.template addPattern<ClientModePointer, CodePattern{"48 8D 3D ? ? ? ? 48 8D 35 ? ? ? ? 90"}.add(3).abs()>()
.template addPattern<GetWorldSessionInClientMode, CodePattern{"FF 10 ? 8B F0 48 85 C0 0F 84"}.add(2)>()
.template addPattern<TransformTranslate3dVMT, CodePattern{"48 8D 05 ? ? ? ? 48 C7 42 ? 00"}.add(3).abs()>()
.template addPattern<TransformScale3dVMT, CodePattern{"48 8D 0D ? ? ? ? F3 0F 10 4B ? F3 0F 10 43"}.add(3).abs()>()
.template addPattern<WorldToProjectionMatrixPointer, CodePattern{"48 8D 0D ? ? ? ? 48 C1 E0 06"}.add(3).abs()>()
Expand Down

0 comments on commit 3c5d23e

Please sign in to comment.