summaryrefslogtreecommitdiff
path: root/src/source.cpp
blob: b27149fd06c36563f4b183e5e9117f743827e608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//|_   _   _.     _  ._  |_   _.  _ |
//| | (/_ (_| \/ (/_ | | | | (_| (_ |<

//#define PERF_DEBUG 1

#include "cs2/hack.h"
#include "conin.h"
#include "menu.h"

bool run() {
  con_init();
  PROCESS64* p = hack_init();

  gcfg.load();
  menu_show_ui( p );

  for( ; hack_run( p ); );

  return false;
}
  
I32 __cdecl main() {
  u_set_debug_privilege();
  u_thread_create( &con_hook_handler );
  u_thread_create( &con_handler );

  for( ; !run(); );

  return 0;
}