mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
28 lines
583 B
C
28 lines
583 B
C
#ifndef _IN_FS_H
|
|
#define _IN_FS_H
|
|
|
|
#include <stdio.h>
|
|
#include <PR/ultratypes.h>
|
|
|
|
#define FS_MAXPATH 1024
|
|
|
|
s32 fsInit(void);
|
|
|
|
const char *fsFullPath(const char *relPath);
|
|
|
|
s32 fsPathIsAbsolute(const char *path);
|
|
s32 fsPathIsCwdRelative(const char *path);
|
|
|
|
void *fsFileLoad(const char *name, u32 *outSize);
|
|
s32 fsFileLoadTo(const char *name, void *dst, u32 dstSize);
|
|
s32 fsFileSize(const char *name);
|
|
|
|
FILE *fsFileOpenWrite(const char *name);
|
|
FILE *fsFileOpenRead(const char *name);
|
|
void fsFileFree(FILE *f);
|
|
|
|
const char *fsGetModDir(void);
|
|
s32 fsCreateDir(const char *path);
|
|
|
|
#endif
|