Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/source/cgame/cg_public.h b/source/cgame/cg_public.h
- index 3c552dd..a238ebe 100644
- --- a/source/cgame/cg_public.h
- +++ b/source/cgame/cg_public.h
- @@ -111,6 +111,7 @@ typedef struct
- int ( *FS_FOpenFile )( const char *filename, int *filenum, int mode );
- int ( *FS_Read )( void *buffer, size_t len, int file );
- int ( *FS_Write )( const void *buffer, size_t len, int file );
- + qboolean ( *FS_MoveFile )( const char *src, const char *dst ); //racesow
- int ( *FS_Print )( int file, const char *msg );
- int ( *FS_Tell )( int file );
- int ( *FS_Seek )( int file, int offset, int whence );
- diff --git a/source/cgame/cg_syscalls.h b/source/cgame/cg_syscalls.h
- index f7d7bf5..603eec5 100644
- --- a/source/cgame/cg_syscalls.h
- +++ b/source/cgame/cg_syscalls.h
- @@ -166,6 +166,11 @@ static inline int trap_FS_Write( const void *buffer, size_t len, int file )
- return CGAME_IMPORT.FS_Write( buffer, len, file );
- }
- +static inline int trap_FS_MoveFile( const char *src, const char *dst )
- +{
- + return CGAME_IMPORT.FS_MoveFile( src, dst );
- +}
- +
- static inline int trap_FS_Print( int file, const char *msg )
- {
- return CGAME_IMPORT.FS_Print( file, msg );
- diff --git a/source/client/cl_game.c b/source/client/cl_game.c
- index be74396..63032ef 100644
- --- a/source/client/cl_game.c
- +++ b/source/client/cl_game.c
- @@ -219,6 +219,8 @@ CL_GameModule_InitImportStruct
- import.FS_Read = FS_Read, \
- import.FS_Write = FS_Write, \
- \
- + import.FS_MoveFile = FS_MoveFile, \
- +\
- import.FS_Print = FS_Print, \
- import.FS_Tell = FS_Tell, \
- import.FS_Seek = FS_Seek, \
- @@ -294,7 +296,7 @@ CL_GameModule_InitImportStruct
- \
- import.Mem_Alloc = CL_GameModule_MemAlloc, \
- import.Mem_Free = CL_GameModule_MemFree \
- -)
- +) //racesow
- /*
- * CL_GameModule_Init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement