First commit of the rewrite

Doesn't build on windows for some retarded reason
This commit is contained in:
Steve Dudenhoeffer
2007-05-04 12:51:13 +00:00
parent 46bd9127fb
commit 66d7d39bee
34 changed files with 12537 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef HOOKLIST_T_H
#define HOOKLIST_T_H
typedef struct hook_s
{
int isset; // whether or not this hook is registered with hamdata
int vtid; // vtable index of this function
const char *name; // name used in the keys
bool isvoid; // whether or not the target trampoline uses voids
int paramcount; // how many parameters are in the func
void *targetfunc; // the target hook
int (*makefunc)(AMX *, const char*); // function that creates forwards
int (*call)(AMX *, cell*); // function to call the vcall
int (*ecall)(AMX *, cell*); // function to ecall the vcall
} hook_t;
extern hook_t hooklist[];
#endif