Get player_extra_info symbol
This commit is contained in:
parent
5e09221241
commit
fd0aea976f
|
@ -19,6 +19,9 @@ DECL_INTF(StudioModelRenderer_t, studiomodelrenderer);
|
||||||
/* Game struct with some useful info */
|
/* Game struct with some useful info */
|
||||||
game_t* game_info;
|
game_t* game_info;
|
||||||
|
|
||||||
|
/* Array of extra_player_info's for each player */
|
||||||
|
extra_player_info_t* player_extra_info;
|
||||||
|
|
||||||
/* Updated in CL_CreateMove hook */
|
/* Updated in CL_CreateMove hook */
|
||||||
cl_entity_t* localplayer = NULL;
|
cl_entity_t* localplayer = NULL;
|
||||||
|
|
||||||
|
@ -49,6 +52,9 @@ bool globals_init(void) {
|
||||||
const char* SMR_STR = "g_StudioRenderer"; /* For clang-format */
|
const char* SMR_STR = "g_StudioRenderer"; /* For clang-format */
|
||||||
i_studiomodelrenderer = *(StudioModelRenderer_t**)dlsym(*h_client, SMR_STR);
|
i_studiomodelrenderer = *(StudioModelRenderer_t**)dlsym(*h_client, SMR_STR);
|
||||||
|
|
||||||
|
const char* PEI_STR = "g_PlayerExtraInfo"; /* For clang-format */
|
||||||
|
player_extra_info = (extra_player_info_t*)dlsym(*h_client, PEI_STR);
|
||||||
|
|
||||||
game_info = *(game_t**)dlsym(hw, "game");
|
game_info = *(game_t**)dlsym(hw, "game");
|
||||||
|
|
||||||
if (!i_engine || !i_client || !i_pmove || !i_enginestudio ||
|
if (!i_engine || !i_client || !i_pmove || !i_enginestudio ||
|
||||||
|
|
|
@ -35,6 +35,7 @@ DECL_INTF_EXTERN(engine_studio_api_t, enginestudio);
|
||||||
DECL_INTF_EXTERN(StudioModelRenderer_t, studiomodelrenderer);
|
DECL_INTF_EXTERN(StudioModelRenderer_t, studiomodelrenderer);
|
||||||
|
|
||||||
extern game_t* game_info;
|
extern game_t* game_info;
|
||||||
|
extern extra_player_info_t* player_extra_info;
|
||||||
extern cl_entity_t* localplayer;
|
extern cl_entity_t* localplayer;
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue