Header

From ZDoom Wiki
Revision as of 14:36, 19 November 2010 by Gez (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Header is the first 12 bytes of any WAD. it contains the basic information needed to read in the Directory

  • 4 bytes: MUST be either "IWAD" or "PWAD". "IWAD" is only for commercial or registered versions. "PWAD" is for Patch WADs that can be distributed.
  • 4 bytes: long integer that is the number of Lumps in the wad.
  • 4 bytes: long integer equal to the file offset to the directory