forked from Ports/perfect_dark
select mod directory with --moddir whatever these should contain a modconfig.txt that can specify replacements for some stage table fields, etc
26 lines
489 B
C
26 lines
489 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 fsFileSize(const char *name);
|
|
|
|
FILE *fsFileOpenWrite(const char *name);
|
|
FILE *fsFileOpenRead(const char *name);
|
|
void fsFileClose(FILE *f);
|
|
|
|
const char *fsGetModDir(void);
|
|
|
|
#endif
|