Browse Source

Add new two functions to Menu API

pull/2/head
Alibek Omarov 6 years ago
parent
commit
78365d2bc6
  1. 2
      engine/client/cl_gameui.c
  2. 3
      engine/menu_int.h

2
engine/client/cl_gameui.c

@ -1013,6 +1013,8 @@ static ui_enginefuncs_t gEngfuncs = @@ -1013,6 +1013,8 @@ static ui_enginefuncs_t gEngfuncs =
GL_ProcessTexture,
COM_CompareFileTime,
VID_GetModeString,
(void*)COM_SaveFile,
(void*)FS_Delete
};
static void pfnEnableTextInput( int enable )

3
engine/menu_int.h

@ -168,6 +168,9 @@ typedef struct ui_enginefuncs_s @@ -168,6 +168,9 @@ typedef struct ui_enginefuncs_s
int (*pfnCompareFileTime)( const char *filename1, const char *filename2, int *iCompare );
const char *(*pfnGetModeString)( int vid_mode );
int (*COM_SaveFile)( const char *filename, const void *data, int len );
int (*pfnDeleteFile)( const char *filename );
} ui_enginefuncs_t;
typedef struct ui_textfuncs_s {

Loading…
Cancel
Save