Chunk

From wowdev
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  • WDT, ADT, WMO, WDL and Legion+ M2 files follow a chunked structure similar to RIFF, consisting of chunks of the following format:
struct IffChunk
{
  uint32_t token; // or "magic" or "identifier"
  uint32_t size;
  uint8_t data[size];
};
  • The initial chunk in most of these files is an MVER chunk, specifying the version of the files in a 32-bit integer.
  • All files use Intel (little-endian) byte order.