mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: make engfuncs const
This commit is contained in:
@@ -2951,7 +2951,7 @@ fs_interface_t g_engfuncs =
|
||||
Sys_GetNativeObject_stub
|
||||
};
|
||||
|
||||
static qboolean FS_InitInterface( int version, fs_interface_t *engfuncs )
|
||||
static qboolean FS_InitInterface( int version, const fs_interface_t *engfuncs )
|
||||
{
|
||||
// to be extended in future interface revisions
|
||||
if( version != FS_API_VERSION )
|
||||
|
||||
@@ -221,7 +221,7 @@ typedef struct fs_interface_t
|
||||
void *(*_Sys_GetNativeObject)( const char *object );
|
||||
} fs_interface_t;
|
||||
|
||||
typedef int (*FSAPI)( int version, fs_api_t *api, fs_globals_t **globals, fs_interface_t *interface );
|
||||
typedef int (*FSAPI)( int version, fs_api_t *api, fs_globals_t **globals, const fs_interface_t *interface );
|
||||
#define GET_FS_API "GetFSAPI"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user