Directory

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)
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.