summaryrefslogtreecommitdiff
path: root/internal_rewrite/play_sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/play_sound.cpp')
-rw-r--r--internal_rewrite/play_sound.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal_rewrite/play_sound.cpp b/internal_rewrite/play_sound.cpp
index 1a8fc9f..3042b02 100644
--- a/internal_rewrite/play_sound.cpp
+++ b/internal_rewrite/play_sound.cpp
@@ -4,7 +4,8 @@ void __fastcall hooks::play_sound( void* ecx_, void*, const char* file ) {
static auto play_sound_o = g_csgo.m_surface->get_old_function< decltype( &play_sound ) >( 82 );
#ifdef HEADER_MODULE
- static auto is_ready = g_header.patterns.is_ready;
+ // static auto is_ready = g_header.patterns.is_ready;
+ static auto is_ready = pattern::first_code_match( g_csgo.m_chl.dll( ), xors( "55 8B EC 83 E4 F8 83 EC 08 56 8B 35 00 00 00 00 57 83 BE" ), 0 );
#else
static auto is_ready = pattern::first_code_match( g_csgo.m_chl.dll( ), xors( "55 8B EC 83 E4 F8 83 EC 08 56 8B 35 00 00 00 00 57 83 BE" ), 0 );
#endif