diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-09-01 14:32:14 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-09-01 14:32:14 +0200 |
| commit | e2350a9ef73817f1f364b6223f9d4d9d5c6235a8 (patch) | |
| tree | 9c752b5e0f04e638fba947fefa0fd00badf3f92b /internal_rewrite/play_sound.cpp | |
| parent | 7afd0eaf52abe9e0bc8c8b5e986e90267f83b4e2 (diff) | |
| parent | beb5515757c0e653adc33f181184fe3791ca0a6b (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'internal_rewrite/play_sound.cpp')
| -rw-r--r-- | internal_rewrite/play_sound.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal_rewrite/play_sound.cpp b/internal_rewrite/play_sound.cpp index e090690..1a8fc9f 100644 --- a/internal_rewrite/play_sound.cpp +++ b/internal_rewrite/play_sound.cpp @@ -2,7 +2,12 @@ #include "base_cheat.hpp" 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; +#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 static bool was_played = false; static float played_tick = 0.f; |
