From beb5515757c0e653adc33f181184fe3791ca0a6b Mon Sep 17 00:00:00 2001 From: navewindre Date: Sat, 1 Sep 2018 14:23:02 +0200 Subject: dasdadasf --- internal_rewrite/suppress_lists.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal_rewrite/suppress_lists.cpp') diff --git a/internal_rewrite/suppress_lists.cpp b/internal_rewrite/suppress_lists.cpp index 11a0805..12fb7bb 100644 --- a/internal_rewrite/suppress_lists.cpp +++ b/internal_rewrite/suppress_lists.cpp @@ -8,7 +8,11 @@ void __fastcall hooks::suppress_lists( void* ecx, void* edx, int list_mask, bool suppress ) { static auto suppress_lists_o = g_csgo.m_partition->get_old_function< decltype( &hooks::suppress_lists ) >( 16 ); +#ifdef HEADER_MODULE + static auto net_update_ret = g_header.patterns.net_update_ret; +#else static auto net_update_ret = pattern::first_code_match< void* >( g_csgo.m_chl.dll( ), "5F 5E 5D C2 04 00 83 3D ? ? ? ? ?" ); +#endif if( _ReturnAddress( ) == net_update_ret ) { g_ctx.m_stage = FRAME_NET_UPDATE_START; -- cgit v1.2.3