From 2ea7162287aa6a7872e00b7dc17b1560a913a30c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 1 Nov 2023 02:36:31 +0300 Subject: [PATCH] engine: gameui: add GetNativeObject to extended menu API --- engine/client/cl_gameui.c | 1 + engine/menu_int.h | 1 + 2 files changed, 2 insertions(+) diff --git a/engine/client/cl_gameui.c b/engine/client/cl_gameui.c index f81f8656..a2f164a8 100644 --- a/engine/client/cl_gameui.c +++ b/engine/client/cl_gameui.c @@ -1220,6 +1220,7 @@ static ui_extendedfuncs_t gExtendedfuncs = pfnParseFileSafe, NET_AdrToString, NET_CompareAdrSort, + Sys_GetNativeObject, }; void UI_UnloadProgs( void ) diff --git a/engine/menu_int.h b/engine/menu_int.h index 97d081b2..2a076cc1 100644 --- a/engine/menu_int.h +++ b/engine/menu_int.h @@ -215,6 +215,7 @@ typedef struct ui_extendedfuncs_s { // network address funcs const char *(*pfnAdrToString)( const struct netadr_s a ); int (*pfnCompareAdr)( const void *a, const void *b ); // netadr_t + void *(*pfnGetNativeObject)( const char *name ); } ui_extendedfuncs_t; // deprecated export from old engine