|
|
@ -109,6 +109,11 @@ typedef struct cldll_func_dst_s |
|
|
|
void (*pfnGetPlayerTeam)( int *iPlayer ); |
|
|
|
void (*pfnGetPlayerTeam)( int *iPlayer ); |
|
|
|
} cldll_func_dst_t; |
|
|
|
} cldll_func_dst_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct cl_enginefunc_dst_s; |
|
|
|
|
|
|
|
struct modshelpers_s; |
|
|
|
|
|
|
|
struct modchelpers_s; |
|
|
|
|
|
|
|
struct engdata_s; |
|
|
|
|
|
|
|
|
|
|
|
typedef struct modfuncs_s |
|
|
|
typedef struct modfuncs_s |
|
|
|
{ |
|
|
|
{ |
|
|
|
void (*m_pfnLoadMod)( char *pchModule ); |
|
|
|
void (*m_pfnLoadMod)( char *pchModule ); |
|
|
@ -398,14 +403,10 @@ static cldll_func_dst_t cldllFuncDst = |
|
|
|
DstGetPlayerTeam, |
|
|
|
DstGetPlayerTeam, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
void GetSecuredClientAPI( CL_EXPORT_FUNCS F ) |
|
|
|
void CL_GetSecuredClientAPI( CL_EXPORT_FUNCS F ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
cldll_func_src_t cldllFuncSrc; |
|
|
|
cldll_func_src_t cldllFuncSrc = { 0 }; |
|
|
|
modfuncs_t modFuncs; |
|
|
|
modfuncs_t modFuncs = { 0 }; |
|
|
|
const dllfunc_t *func; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memset( &cldllFuncSrc, 0, sizeof( cldllFuncSrc ) ); |
|
|
|
|
|
|
|
memset( &modFuncs, 0, sizeof( modFuncs ) ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// secured client dlls need these
|
|
|
|
// secured client dlls need these
|
|
|
|
*(cldll_func_dst_t **)&cldllFuncSrc.pfnVidInit = &cldllFuncDst; |
|
|
|
*(cldll_func_dst_t **)&cldllFuncSrc.pfnVidInit = &cldllFuncDst; |
|
|
|