blob: 1d4d0e2d0648c86c294a90e909748ac495478547 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "hooks.hpp"
void __fastcall hooks::lock_cursor( void* ecx_, void* edx_ ) {
static auto lock_cursor_o = g_csgo.m_surface->get_old_function< decltype( &lock_cursor ) >( 67 );
if( g_settings.menu.open || g_con->m_open ) {
g_csgo.m_surface( )->UnlockCursor( );
return;
}
lock_cursor_o( ecx_, 0 );
}
|