From 938a9f372fa2b8a0cf8867cfc8b6dbd1499f2816 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 26 Jul 2019 14:51:21 +0300 Subject: [PATCH] engine: add stub function for new undocumented function in clientdll api --- engine/cdll_int.h | 3 +++ engine/client/cl_game.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/engine/cdll_int.h b/engine/cdll_int.h index b5b7af72..a1e5254c 100644 --- a/engine/cdll_int.h +++ b/engine/cdll_int.h @@ -303,6 +303,9 @@ typedef struct cl_enginefuncs_s int (*pfnGetAppID)( void ); cmdalias_t *(*pfnGetAliases)( void ); void (*pfnVguiWrap2_GetMouseDelta)( int *x, int *y ); + + // added in 2019 update, not documented yet + int (*pfnFilteredClientCmd)( const char *cmd ); } cl_enginefunc_t; #define CLDLL_INTERFACE_VERSION 7 diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index e75da028..a87a366f 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -3903,6 +3903,10 @@ static cl_enginefunc_t gEngfuncs = pfnGetAppID, Cmd_AliasGetList, pfnVguiWrap2_GetMouseDelta, + + // HACKHACK: added it here so it wouldn't cause overflow or segfault + // TODO: itself client command filtering is not implemented yet + pfnClientCmd }; void CL_UnloadProgs( void )