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); |