Directory

From ZDoom Wiki
Jump to navigation Jump to search

The Directory is a structure in the wad that contains the names, sizes(in bytes) and offsets of every Lump in the wad. Technically it can be anywhere in the file, but most editors place it at the end.

The directory is laid out like this for each entry:

  • 4 bytes: an unsigned long integer for the offset in the file to the lump
  • 4 bytes: an unsigned long integer for the size of the lump
  • 8 bytes for the name of the lump (Doomstring)