From aeef9e6d8241b4f7451a26f5af9645c1a6e5c4d9 Mon Sep 17 00:00:00 2001 From: JustSomePwner Date: Sat, 1 Sep 2018 16:50:50 +0200 Subject: we dont scan engine oops --- internal_rewrite/simulate.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'internal_rewrite/simulate.cpp') diff --git a/internal_rewrite/simulate.cpp b/internal_rewrite/simulate.cpp index 1c46221..fed0840 100644 --- a/internal_rewrite/simulate.cpp +++ b/internal_rewrite/simulate.cpp @@ -7,11 +7,7 @@ void __fastcall hooks::simulate( void* ecx, void* edx ) { static auto simulate_o = g_csgo.m_engine_vgui->get_old_function< decltype( &hooks::simulate ) >( 39 ); -#ifdef HEADER_MODULE - static auto ret_addr = g_header.patterns.simulate_retaddr - 0x81; -#else static auto ret_addr = pattern::first_code_match< void* >( g_csgo.m_engine.dll( ), "8B CE 6A FF 8B 06", -0x81 ); -#endif if( _ReturnAddress( ) == (void*)ret_addr ) { g_ctx.m_stage = FRAME_RENDER_START; -- cgit v1.2.3