src/fileio.h
changeset 7574 40e7c5575a2a
parent 7570 5d5d9b6af0ef
child 7581 24dab79dca15
equal deleted inserted replaced
7573:505e9d05c10a 7574:40e7c5575a2a
    71 }
    71 }
    72 
    72 
    73 /** Iterator for all the search paths */
    73 /** Iterator for all the search paths */
    74 #define FOR_ALL_SEARCHPATHS(sp) for (sp = SP_FIRST_DIR; sp < NUM_SEARCHPATHS; sp++) if (IsValidSearchPath(sp))
    74 #define FOR_ALL_SEARCHPATHS(sp) for (sp = SP_FIRST_DIR; sp < NUM_SEARCHPATHS; sp++) if (IsValidSearchPath(sp))
    75 
    75 
    76 FILE *FioFOpenFile(const char *filename, const char *mode = "rb", Subdirectory subdir = DATA_DIR);
    76 FILE *FioFOpenFile(const char *filename, const char *mode = "rb", Subdirectory subdir = DATA_DIR, size_t *filesize = NULL);
    77 bool FioCheckFileExists(const char *filename, Subdirectory subdir = DATA_DIR);
    77 bool FioCheckFileExists(const char *filename, Subdirectory subdir = DATA_DIR);
    78 char *FioGetFullPath(char *buf, size_t buflen, Searchpath sp, Subdirectory subdir, const char *filename);
    78 char *FioGetFullPath(char *buf, size_t buflen, Searchpath sp, Subdirectory subdir, const char *filename);
    79 char *FioFindFullPath(char *buf, size_t buflen, Subdirectory subdir, const char *filename);
    79 char *FioFindFullPath(char *buf, size_t buflen, Subdirectory subdir, const char *filename);
    80 char *FioAppendDirectory(char *buf, size_t buflen, Searchpath sp, Subdirectory subdir);
    80 char *FioAppendDirectory(char *buf, size_t buflen, Searchpath sp, Subdirectory subdir);
    81 char *FioGetDirectory(char *buf, size_t buflen, Subdirectory subdir);
    81 char *FioGetDirectory(char *buf, size_t buflen, Subdirectory subdir);