Browse Source

Add new two functions to Menu API

pull/2/head
Alibek Omarov 7 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 =
GL_ProcessTexture, GL_ProcessTexture,
COM_CompareFileTime, COM_CompareFileTime,
VID_GetModeString, VID_GetModeString,
(void*)COM_SaveFile,
(void*)FS_Delete
}; };
static void pfnEnableTextInput( int enable ) static void pfnEnableTextInput( int enable )

3
engine/menu_int.h

@ -168,6 +168,9 @@ typedef struct ui_enginefuncs_s
int (*pfnCompareFileTime)( const char *filename1, const char *filename2, int *iCompare ); int (*pfnCompareFileTime)( const char *filename1, const char *filename2, int *iCompare );
const char *(*pfnGetModeString)( int vid_mode ); 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; } ui_enginefuncs_t;
typedef struct ui_textfuncs_s { typedef struct ui_textfuncs_s {

Loading…
Cancel
Save