w_wad.h (708B)
1 #ifndef __W_WAD__ 2 #define __W_WAD__ 3 4 typedef struct { 5 char identification[4]; 6 long numlumps; 7 long infotableofs; 8 } wadinfo_t; 9 10 typedef struct { 11 long filepos; 12 long size; 13 char name[8]; 14 } filelump_t; 15 16 typedef struct { 17 unsigned char* cache; 18 char name[8]; 19 long position; 20 long size; 21 } lumpinfo_t; 22 23 extern void** lumpcache; 24 extern lumpinfo_t* lumpinfo_g; 25 extern int numlumps_g; 26 27 void W_InitMultipleFiles(char** filenames); 28 void W_Reload(); 29 int W_CheckNumForName(char* name); 30 int W_GetNumForName(char* name); 31 int W_LumpLength(int lump); 32 void W_ReadLump(int lump, void *dest); 33 void* W_CacheLumpNum(int lump, int tag); 34 void* W_CacheLumpName(char* name, int tag); 35 36 #endif