summaryrefslogtreecommitdiff
path: root/internal_rewrite/in_prediction.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-01 14:23:02 +0200
committernavewindre <boneyaard@gmail.com>2018-09-01 14:23:02 +0200
commitbeb5515757c0e653adc33f181184fe3791ca0a6b (patch)
tree68f123f602795a31a8811bd56e3b3271c102a3fa /internal_rewrite/in_prediction.cpp
parent0767d6d4acaf5f86a67a375dffa54da9323646e3 (diff)
dasdadasf
Diffstat (limited to 'internal_rewrite/in_prediction.cpp')
-rw-r--r--internal_rewrite/in_prediction.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal_rewrite/in_prediction.cpp b/internal_rewrite/in_prediction.cpp
index 1044ca3..c7e6f33 100644
--- a/internal_rewrite/in_prediction.cpp
+++ b/internal_rewrite/in_prediction.cpp
@@ -6,8 +6,12 @@
bool __fastcall hooks::in_prediction( void* ecx_, void* edx_ ) {
static auto in_prediction_o = g_csgo.m_prediction->get_old_function< decltype( &hooks::in_prediction ) >( 14 );
+#ifdef HEADER_MODULE
+ static auto ret_address = g_header.patterns.in_prediction_retaddr;
+#else
static auto ret_address = pattern::first_code_match( g_csgo.m_chl.dll( ),
xors( "84 C0 75 08 57 8B CE E8 ? ? ? ? 8B 06" ) );
+#endif
if( g_ctx.m_local && ret_address && g_settings.rage.enabled( ) ) {
stack_t stack( get_baseptr( ) );