Add hook comments
This commit is contained in:
parent
eff4c70739
commit
f924628fd9
|
@ -23,12 +23,15 @@ DECL_HOOK(CL_Move);
|
|||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
bool hooks_init(void) {
|
||||
/* VMT hooking */
|
||||
HOOK(i_client, CL_CreateMove);
|
||||
HOOK(i_client, HUD_Redraw);
|
||||
HOOK(i_studiomodelrenderer, StudioRenderModel);
|
||||
|
||||
/* OpenGL hooks */
|
||||
GL_HOOK(glColor4f);
|
||||
|
||||
/* Detour hooks */
|
||||
void* clmove_ptr = dlsym(hw, "CL_Move");
|
||||
if (!clmove_ptr)
|
||||
return false;
|
||||
|
|
|
@ -91,12 +91,15 @@
|
|||
bool hooks_init(void);
|
||||
void hooks_restore(void);
|
||||
|
||||
/* VMT hooks */
|
||||
DECL_HOOK_EXTERN(void, CL_CreateMove, float, usercmd_t*, int);
|
||||
DECL_HOOK_EXTERN(int, HUD_Redraw, float, int);
|
||||
DECL_HOOK_EXTERN(void, StudioRenderModel, void* this_ptr);
|
||||
DECL_HOOK_EXTERN(void, StudioRenderModel, void*);
|
||||
|
||||
DECL_HOOK_EXTERN(void, glColor4f, GLfloat r, GLfloat g, GLfloat b, GLfloat a);
|
||||
/* OpenGL hooks */
|
||||
DECL_HOOK_EXTERN(void, glColor4f, GLfloat, GLfloat, GLfloat, GLfloat);
|
||||
|
||||
/* Detour hooks */
|
||||
DECL_HOOK_EXTERN(void, CL_Move);
|
||||
|
||||
#endif /* HOOKS_H_ */
|
||||
|
|
Loading…
Reference in New Issue