From f98507c96886e9cc84809e4beed5fc066ea1177e Mon Sep 17 00:00:00 2001 From: JustSomePwner Date: Sat, 1 Sep 2018 19:29:36 +0200 Subject: gangsta shit --- internal_rewrite/interface.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'internal_rewrite/interface.cpp') diff --git a/internal_rewrite/interface.cpp b/internal_rewrite/interface.cpp index 1d1be5b..904a4a9 100644 --- a/internal_rewrite/interface.cpp +++ b/internal_rewrite/interface.cpp @@ -17,6 +17,7 @@ interfaces::c_interface_manager g_factory; factory::c_csgo g_csgo; bool factory::create_interfaces( c_csgo* instance, header_t* header ) { + #ifndef HEADER_MODULE header->client_panorama = ( uintptr_t )GetModuleHandleA( "client_panorama.dll" ); header->vguimatsurface = ( uintptr_t )GetModuleHandleA( "vguimatsurface.dll" ); @@ -48,7 +49,7 @@ bool factory::create_interfaces( c_csgo* instance, header_t* header ) { instance->create( &instance->m_engine_vgui, xors( "VEngineVGui" ) ); instance->create( &instance->m_input_sys, xors( "InputSystemVersion" ) ); - auto d3d_device = pattern::first_code_match( GetModuleHandleA( xors( "shaderapidx9.dll" ) ), + auto d3d_device = pattern::first_code_match( (HMODULE)header->shaderapidx9, xors( "A1 ?? ?? ?? ?? 50 8B 08 FF 51 0C" ) ) + 0x1; #ifdef HEADER_MODULE @@ -197,18 +198,20 @@ con_fn unload_fn{ fnv( "unload" ), };*/ void factory::c_csgo::initialize( ) { - m_panic = true; + m_panic = false; + g_con->create( ); auto now = std::chrono::high_resolution_clock::now( ); g_con->print( xors( "hello\n" ) ); - //hi - factory::create_interfaces( &g_csgo, &g_header ); + g_fonts.initialize( ); - g_netvars.init( ); + g_netvars.init( ); + g_settings.load( ); + g_con->register_fn( &clear_fn ); g_con->register_fn( &enable_logs_fn ); g_con->register_fn( &fnv_fn ); @@ -218,7 +221,7 @@ void factory::c_csgo::initialize( ) { g_con->register_fn( &unload_fn ); hooks::commit( &g_csgo ); - + g_cheat.m_chams.m_materials.initialize_materials( ); util::calculate_spread_runtime( ); @@ -230,8 +233,6 @@ void factory::c_csgo::initialize( ) { g_con->log( xors( "cheat initialized\n" ) ); g_con->log( xors( "time taken: %f\n" ), delta.count( ) ); - - m_panic = false; } void factory::c_csgo::uninitialize( ) { -- cgit v1.2.3