2009-09-30 23:10:58 +00:00
|
|
|
#ifndef _FSTFILE_H_
|
|
|
|
#define _FSTFILE_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-18 23:16:05 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-09-30 23:10:58 +00:00
|
|
|
#endif
|
|
|
|
|
2010-09-18 23:16:05 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2009-09-30 23:10:58 +00:00
|
|
|
u8 filetype;
|
|
|
|
char name_offset[3];
|
|
|
|
u32 fileoffset;
|
|
|
|
u32 filelen;
|
2010-09-18 23:16:05 +00:00
|
|
|
} __attribute__( ( packed ) ) FST_ENTRY;
|
2009-09-30 23:10:58 +00:00
|
|
|
|
2010-09-18 23:16:05 +00:00
|
|
|
char *fstfiles( FST_ENTRY *fst, u32 index );
|
|
|
|
char *fstfilename( u32 index );
|
|
|
|
u32 fstfileoffset( u32 index );
|
2009-09-30 23:10:58 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|