diff --git a/src/globals.c b/src/globals.c index 7b60109..ff4e53a 100644 --- a/src/globals.c +++ b/src/globals.c @@ -8,6 +8,8 @@ #include "include/sdk.h" #include "include/util.h" +enum game_id this_game_id = HL; + void* hw; void** h_client; DECL_INTF(cl_enginefunc_t, engine); @@ -25,6 +27,8 @@ extra_player_info_t* player_extra_info; /* Updated in CL_CreateMove hook */ cl_entity_t* localplayer = NULL; +/*----------------------------------------------------------------------------*/ + bool globals_init(void) { /* * Get handler for hw.so diff --git a/src/include/globals.h b/src/include/globals.h index a3dbad3..1c17d35 100644 --- a/src/include/globals.h +++ b/src/include/globals.h @@ -4,6 +4,13 @@ #include "sdk.h" +enum game_id { + HL = 0, /* Half-Life 1 */ + CS = 1, /* Counter-Strike 1.6 */ + TF = 2, /* Team Fortress Classic */ + DOD = 3, /* Day of Defeat */ +}; + /*----------------------------------------------------------------------------*/ /* @@ -26,6 +33,8 @@ /*----------------------------------------------------------------------------*/ +extern game_id this_game_id; + extern void* hw; extern void** h_client; /* hClientDLL hander */ DECL_INTF_EXTERN(cl_enginefunc_t, engine);