SciresM

fs.h

Feb 13th, 2015
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #ifndef _FS_H
  2. #define _FS_H
  3.  
  4. typedef struct file_s {
  5.     int s;
  6.     int pos;
  7.     int size;
  8. } FILE;
  9.  
  10. #define FILE_R 0x1
  11. #define FILE_W 0x6
  12.  
  13. int(*IFile_Open)(FILE *this, const short *path, int flags) = (void *)0x0022FE08;
  14. int(*IFile_Read)(FILE *this, unsigned int *read, void *buffer, unsigned int size) = (void *)0x001686DC;
  15. int(*IFile_Write)(FILE *this, unsigned int *written, void *src, unsigned int len) = (void *)0x00168764;
  16.  
  17. #endif /* _FS_H */
Add Comment
Please, Sign In to add comment