Header

From ZDoom Wiki
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