summaryrefslogtreecommitdiff
path: root/internal_rewrite/hooks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/hooks.cpp')
-rw-r--r--internal_rewrite/hooks.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal_rewrite/hooks.cpp b/internal_rewrite/hooks.cpp
index eb85de1..e786a2b 100644
--- a/internal_rewrite/hooks.cpp
+++ b/internal_rewrite/hooks.cpp
@@ -82,10 +82,6 @@ bool hooks::commit( factory::c_csgo* instance ) {
scene_end_o = d->create_hook( &hooks::scene_end, instance->m_render_view->get_old_function< void* >( 9 ) );
get_screen_size_o = d->create_hook( &hooks::get_screen_size, instance->m_surface->get_old_function< void* >( 44 ) );
- //auto packet_start = pattern::first_code_match< void* >( instance->m_engine.dll( ), xors( "55 8B EC 8B 45 08 89 81 ? ? ? ? 8B 45 0C 89 81 ? ? ? ? 5D C2 08 00" ) );
-
- //packet_start_o = d->create_hook( &::hooks::packet_start, packet_start );
-
on_screen_size_changed_o = d->create_hook( &hooks::on_screen_size_changed, instance->m_surface->get_old_function< void* >( 116 ) );
play_sound_o = d->create_hook( &hooks::play_sound, instance->m_surface->get_old_function< void* >( 82 ) );
material_system_o = d->create_hook( &hooks::material_system, instance->m_mat_system->get_old_function< void* >( 21 ) );
@@ -95,6 +91,8 @@ bool hooks::commit( factory::c_csgo* instance ) {
begin_lock_o = d->create_hook( &hooks::begin_lock, instance->m_mdl_cache->get_old_function< void* >( 33 ) );
end_lock_o = d->create_hook( &hooks::end_lock, instance->m_mdl_cache->get_old_function< void* >( 34 ) );
+ auto packet_start = pattern::first_code_match< void* >( instance->m_engine.dll( ), xors( "55 8B EC 8B 45 08 89 81 ? ? ? ? 8B 45 0C 89 81 ? ? ? ? 5D C2 08 00 ? ? ? ? ? ? ? 56" ) );
+ packet_start_o = d->create_hook( &::hooks::packet_start, packet_start );
auto update_clientside_anim = pattern::first_code_match< void* >( instance->m_chl.dll( ), xors( "55 8B EC 51 56 8B F1 80 BE ? ? ? ? ? 74 36" ) );
update_clientside_animation_o = d->create_hook( &hooks::update_clientside_animation, update_clientside_anim );