2004-04-20 23:01:54 +00:00
|
|
|
#ifndef __ruamoko_qfs_h
|
|
|
|
#define __ruamoko_qfs_h
|
|
|
|
|
|
|
|
#include "qfile.h"
|
|
|
|
|
2010-01-13 06:34:32 +00:00
|
|
|
struct _qfslist_t {
|
2011-03-25 07:46:32 +00:00
|
|
|
int count;
|
2011-02-13 12:25:36 +00:00
|
|
|
string *list;
|
2010-01-13 06:29:01 +00:00
|
|
|
};
|
2011-02-13 12:25:36 +00:00
|
|
|
typedef struct _qfslist_t *QFSlist;
|
2004-04-20 23:01:54 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern QFile QFS_Open (string path, string mode);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern QFile QFS_WOpen (string path, int zip);
|
|
|
|
@extern int QFS_Rename (string old, string new);
|
2011-02-13 12:25:36 +00:00
|
|
|
@extern void *QFS_LoadFile (string filename);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern QFile QFS_OpenFile (string filename);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern int QFS_WriteFile (string filename, void *buf, int count);
|
|
|
|
@extern QFSlist QFS_Filelist (string path, string ext, int strip);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern void QFS_FilelistFree (QFSlist list);
|
2004-04-20 23:01:54 +00:00
|
|
|
|
|
|
|
#endif//__ruamoko_qfs_h
|