Store player_extra_info as void*

This commit is contained in:
8dcc 2023-07-28 16:31:21 +02:00
parent b0b54faf14
commit 3080b4dc2d
2 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@ DECL_INTF(StudioModelRenderer_t, studiomodelrenderer);
game_t* game_info;
/* Array of extra_player_info's for each player */
extra_player_info_t* player_extra_info;
void* player_extra_info;
/* Updated in CL_CreateMove hook */
cl_entity_t* localplayer = NULL;
@ -56,8 +56,7 @@ bool globals_init(void) {
const char* SMR_STR = "g_StudioRenderer"; /* For clang-format */
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);
player_extra_info = dlsym(*h_client, "g_PlayerExtraInfo");
game_info = *(game_t**)dlsym(hw, "game");

View File

@ -44,7 +44,7 @@ DECL_INTF_EXTERN(engine_studio_api_t, enginestudio);
DECL_INTF_EXTERN(StudioModelRenderer_t, studiomodelrenderer);
extern game_t* game_info;
extern extra_player_info_t* player_extra_info;
extern void* player_extra_info;
extern cl_entity_t* localplayer;
/*----------------------------------------------------------------------------*/