Fix *_H_ defines

_NAME_H -> NAME_H_
Remove comments from sdk.h
Add credits for cl_clientfuncs_s
This commit is contained in:
8dcc 2023-07-22 16:27:40 +02:00
parent 195f9831af
commit 25a9a474cf
7 changed files with 26 additions and 32 deletions

View File

@ -1,5 +1,6 @@
#ifndef _FEATURES_H
#define _FEATURES_H #ifndef FEATURES_H_
#define FEATURES_H_
#include "../include/sdk.h" #include "../include/sdk.h"
@ -9,4 +10,4 @@ void bhop(usercmd_t* cmd);
/* src/features/esp.c */ /* src/features/esp.c */
void esp(void); void esp(void);
#endif /* _FEATURES_H */ #endif /* FEATURES_H_ */

View File

@ -1,6 +1,6 @@
#ifndef _CVARS_H #ifndef CVARS_H_
#define _CVARS_H #define CVARS_H_
#include "sdk.h" #include "sdk.h"
#include "globals.h" #include "globals.h"
@ -36,4 +36,4 @@ DECL_CVAR_EXTERN(esp);
bool cvars_init(void); bool cvars_init(void);
#endif /* _CVARS_H */ #endif /* CVARS_H_ */

View File

@ -1,5 +1,6 @@
#ifndef _GLOBALS_H
#define _GLOBALS_H #ifndef GLOBALS_H_
#define GLOBALS_H_
#include "sdk.h" #include "sdk.h"
@ -37,4 +38,4 @@ bool globals_init(void);
void globals_store(void); void globals_store(void);
void globals_restore(void); void globals_restore(void);
#endif /* _GLOBALS_H */ #endif /* GLOBALS_H_ */

View File

@ -1,6 +1,6 @@
#ifndef _HOOKS_H #ifndef HOOKS_H_
#define _HOOKS_H #define HOOKS_H_
/*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/
@ -63,4 +63,4 @@ bool hooks_init(void);
DECL_HOOK_EXTERN(void, CL_CreateMove, float, usercmd_t*, int); DECL_HOOK_EXTERN(void, CL_CreateMove, float, usercmd_t*, int);
DECL_HOOK_EXTERN(int, HUD_Redraw, float, int); DECL_HOOK_EXTERN(int, HUD_Redraw, float, int);
#endif /* _HOOKS_H */ #endif /* HOOKS_H_ */

View File

@ -1,8 +1,8 @@
#ifndef _MAIN_H #ifndef MAIN_H_
#define _MAIN_H #define MAIN_H_
void load(void); void load(void);
void self_unload(void); void self_unload(void);
#endif /* _MAIN_H */ #endif /* MAIN_H_ */

View File

@ -1,5 +1,5 @@
#ifndef _SDK_H #ifndef SDK_H_
#define _SDK_H #define SDK_H_
/* /*
* cl_enginefunc_t: * cl_enginefunc_t:
@ -22,17 +22,9 @@
#include "sdk/common/triangleapi.h" #include "sdk/common/triangleapi.h"
/* /*
#include "sdk/common/event_api.h" * Credits:
#include "sdk/common/mathlib.h" * https://github.com/UnkwUsr/hlhax/blob/26491984996c8389efec977ed940c5a67a0ecca4/src/sdk.h#L45
#include "sdk/common/r_studioint.h"
#include "sdk/cl_dll/global_consts.h"
#include "sdk/common/com_model.h"
#include "sdk/engine/studio.h"
#include "sdk/common/screenfade.h"
#include "sdk/common/net_api.h"
#include "sdk/common/parsemsg.h"
*/ */
typedef struct cl_clientfuncs_s { typedef struct cl_clientfuncs_s {
int (*Initialize)(cl_enginefunc_t* pEnginefuncs, int iVersion); int (*Initialize)(cl_enginefunc_t* pEnginefuncs, int iVersion);
void (*HUD_Init)(void); void (*HUD_Init)(void);
@ -109,4 +101,4 @@ typedef struct cl_clientfuncs_s {
void (*CLIENTFACTORY)(void); void (*CLIENTFACTORY)(void);
} cl_clientfunc_t; } cl_clientfunc_t;
#endif /* _SDK_H */ #endif /* SDK_H_ */

View File

@ -1,5 +1,5 @@
#ifndef _UTIL_H #ifndef UTIL_H_
#define _UTIL_H #define UTIL_H_
#include "sdk.h" #include "sdk.h"
#include "globals.h" #include "globals.h"
@ -15,4 +15,4 @@ char* get_name(int ent_idx);
bool vec_is_zero(vec3_t v); bool vec_is_zero(vec3_t v);
bool world_to_screen(vec3_t vec, vec2_t screen); bool world_to_screen(vec3_t vec, vec2_t screen);
#endif /* _UTIL_H */ #endif /* UTIL_H_ */