diff options
Diffstat (limited to 'src/w_wad.c')
-rw-r--r-- | src/w_wad.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/w_wad.c b/src/w_wad.c index 598794c4..2d58b574 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -32,7 +32,9 @@ #include <stdlib.h> #include <string.h> +#include "doomdef.h" #include "doomtype.h" + #include "i_swap.h" #include "i_system.h" #include "i_video.h" @@ -40,6 +42,22 @@ #include "w_wad.h" +typedef struct +{ + // Should be "IWAD" or "PWAD". + char identification[4]; + int numlumps; + int infotableofs; +} PACKEDATTR wadinfo_t; + + +typedef struct +{ + int filepos; + int size; + char name[8]; +} PACKEDATTR filelump_t; + // // GLOBALS // |