summaryrefslogtreecommitdiff
path: root/internal_rewrite/play_sound.cpp
diff options
context:
space:
mode:
authorJustSomePwner <crotchyalt@gmail.com>2018-09-01 19:29:36 +0200
committerJustSomePwner <crotchyalt@gmail.com>2018-09-01 19:29:36 +0200
commitf98507c96886e9cc84809e4beed5fc066ea1177e (patch)
tree810724c3fe416f64040737f7f30f4cb2f07e249c /internal_rewrite/play_sound.cpp
parent89d0110da2e65405fcbdac0e24f4fcc5cdce4c1c (diff)
gangsta shit
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