diff options
Diffstat (limited to 'src/source.cpp')
| -rw-r--r-- | src/source.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/source.cpp b/src/source.cpp new file mode 100644 index 0000000..965820f --- /dev/null +++ b/src/source.cpp @@ -0,0 +1,39 @@ +//|_ _ _. _ ._ |_ _. _ | +//| | (/_ (_| \/ (/_ | | | | (_| (_ |< + +#include "csgo/hack.h" +#include "util.h" +#include "conin.h" +#include "menu.h" +#include "csgo/convar.h" + +bool run() { + con_init(); + PROCESS32* p = hack_init(); + + Sleep( 1000 ); + settings.load(); + menu_show_ui( p ); + + for( ;; ) { + if( !hack_run( p ) ) { + nt_close64( p->get_base() ); + u_sleep( 5 * T_SEC ); + break; + } + } + + return false; +} + +I32 __cdecl main() { + con_init(); + + u_set_debug_privilege(); + u_thread_create( &con_hook_handler ); + u_thread_create( &con_handler ); + + for( ; !run(); ); + + return 0; +} |
