mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-28 03:35:19 +01:00
filesystem: make engfuncs const
This commit is contained in:
parent
2009140da8
commit
17950fec3e
@ -59,7 +59,7 @@ static void FS_Path_f_( void )
|
||||
FS_Path_f();
|
||||
}
|
||||
|
||||
static fs_interface_t fs_memfuncs =
|
||||
static const fs_interface_t fs_memfuncs =
|
||||
{
|
||||
Con_Printf,
|
||||
Con_DPrintf,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user