filesystem: make engfuncs const
This commit is contained in:
parent
2009140da8
commit
17950fec3e
3 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ static void FS_Path_f_( void )
|
||||||
FS_Path_f();
|
FS_Path_f();
|
||||||
}
|
}
|
||||||
|
|
||||||
static fs_interface_t fs_memfuncs =
|
static const fs_interface_t fs_memfuncs =
|
||||||
{
|
{
|
||||||
Con_Printf,
|
Con_Printf,
|
||||||
Con_DPrintf,
|
Con_DPrintf,
|
||||||
|
|
|
@ -2951,7 +2951,7 @@ fs_interface_t g_engfuncs =
|
||||||
Sys_GetNativeObject_stub
|
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
|
// to be extended in future interface revisions
|
||||||
if( version != FS_API_VERSION )
|
if( version != FS_API_VERSION )
|
||||||
|
|
|
@ -221,7 +221,7 @@ typedef struct fs_interface_t
|
||||||
void *(*_Sys_GetNativeObject)( const char *object );
|
void *(*_Sys_GetNativeObject)( const char *object );
|
||||||
} fs_interface_t;
|
} 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"
|
#define GET_FS_API "GetFSAPI"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Add table
Reference in a new issue