Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.75 KB | None | 0 0
  1. diff --git a/source/cgame/cg_public.h b/source/cgame/cg_public.h
  2. index 3c552dd..a238ebe 100644
  3. --- a/source/cgame/cg_public.h
  4. +++ b/source/cgame/cg_public.h
  5. @@ -111,6 +111,7 @@ typedef struct
  6.     int ( *FS_FOpenFile )( const char *filename, int *filenum, int mode );
  7.     int ( *FS_Read )( void *buffer, size_t len, int file );
  8.     int ( *FS_Write )( const void *buffer, size_t len, int file );
  9. +   qboolean ( *FS_MoveFile )( const char *src, const char *dst ); //racesow
  10.     int ( *FS_Print )( int file, const char *msg );
  11.     int ( *FS_Tell )( int file );
  12.     int ( *FS_Seek )( int file, int offset, int whence );
  13. diff --git a/source/cgame/cg_syscalls.h b/source/cgame/cg_syscalls.h
  14. index f7d7bf5..603eec5 100644
  15. --- a/source/cgame/cg_syscalls.h
  16. +++ b/source/cgame/cg_syscalls.h
  17. @@ -166,6 +166,11 @@ static inline int trap_FS_Write( const void *buffer, size_t len, int file )
  18.     return CGAME_IMPORT.FS_Write( buffer, len, file );
  19.  }
  20.  
  21. +static inline int trap_FS_MoveFile( const char *src, const char *dst )
  22. +{
  23. +   return CGAME_IMPORT.FS_MoveFile( src, dst );
  24. +}
  25. +
  26.  static inline int trap_FS_Print( int file, const char *msg )
  27.  {
  28.     return CGAME_IMPORT.FS_Print( file, msg );
  29. diff --git a/source/client/cl_game.c b/source/client/cl_game.c
  30. index be74396..63032ef 100644
  31. --- a/source/client/cl_game.c
  32. +++ b/source/client/cl_game.c
  33. @@ -219,6 +219,8 @@ CL_GameModule_InitImportStruct
  34.     import.FS_Read = FS_Read, \
  35.     import.FS_Write = FS_Write, \
  36.  \
  37. +   import.FS_MoveFile = FS_MoveFile, \
  38. +\
  39.     import.FS_Print = FS_Print, \
  40.     import.FS_Tell = FS_Tell, \
  41.     import.FS_Seek = FS_Seek, \
  42. @@ -294,7 +296,7 @@ CL_GameModule_InitImportStruct
  43.  \
  44.     import.Mem_Alloc = CL_GameModule_MemAlloc, \
  45.     import.Mem_Free = CL_GameModule_MemFree \
  46. -)
  47. +) //racesow
  48.  
  49.  /*
  50.  * CL_GameModule_Init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement