32 |
32 |
33 /* OS-specific functions are taken from their respective files (win32/unix/os2 .c) */ |
33 /* OS-specific functions are taken from their respective files (win32/unix/os2 .c) */ |
34 extern bool FiosIsRoot(const char *path); |
34 extern bool FiosIsRoot(const char *path); |
35 extern bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb); |
35 extern bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb); |
36 extern bool FiosIsHiddenFile(const struct dirent *ent); |
36 extern bool FiosIsHiddenFile(const struct dirent *ent); |
37 extern void FiosGetDrives(void); |
37 extern void FiosGetDrives(); |
38 extern bool FiosGetDiskFreeSpace(const char *path, uint32 *tot); |
38 extern bool FiosGetDiskFreeSpace(const char *path, uint32 *tot); |
39 |
39 |
40 /* get the name of an oldstyle savegame */ |
40 /* get the name of an oldstyle savegame */ |
41 extern void GetOldSaveGameName(char *title, const char *path, const char *file); |
41 extern void GetOldSaveGameName(char *title, const char *path, const char *file); |
42 |
42 |
43 /** |
43 /** |
44 * Allocate a new FiosItem. |
44 * Allocate a new FiosItem. |
45 * @return A pointer to the newly allocated FiosItem. |
45 * @return A pointer to the newly allocated FiosItem. |
46 */ |
46 */ |
47 FiosItem *FiosAlloc(void) |
47 FiosItem *FiosAlloc() |
48 { |
48 { |
49 if (_fios_count == _fios_alloc) { |
49 if (_fios_count == _fios_alloc) { |
50 _fios_alloc += 256; |
50 _fios_alloc += 256; |
51 _fios_items = ReallocT(_fios_items, _fios_alloc); |
51 _fios_items = ReallocT(_fios_items, _fios_alloc); |
52 } |
52 } |