summaryrefslogtreecommitdiff
path: root/src/csgo/trace.h
blob: e496f15055f2f942be0e424363b2c66087569710 (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
31
32
33
34
35
36
37
38
39
40
#include "../disasm.h"

#include "hack.h"

struct TRACE_ARGS {
  U32 ignore_ent;
  VEC3 start;
  VEC3 end;
  U32 mask;

  VEC3 ret_end;
  VEC3 ret_normal;
  U32  ret_ent;
};

__declspec( naked ) void __stdcall trace_shellcode( TRACE_ARGS* args ) {
  __asm {
    push ebp
    mov ebp, esp
    sub esp, LOCAL_SIZE
  }

  
  
  DISASM_SIG();

  __asm {
    mov esp, ebp
    pop ebp
    ret
  }
}

U32 trace_allocate( CSGO* p ) {
  DISASM_INFO disasm = disasm_function( &trace_shellcode );
}

U32 trace_find_func( CSGO* p ) {
  
}