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