*.dir
File Formats
Fil_dir.html

Name

*.dir - contains info for the file entries of an *.img file of the same name

Location

models/*.dir

Description

The *.dir files are collections of records that list the file entry information for an img file with the same name.

Sturucture of File

  TDirEntry = record
    StartBlock: Longword;
    BlockCount: Longword;
    Name: array[0..23] of Char;
  end;

Section Descriptions

StartBlock - the start of the file. And since a block is 2048 bytes large you just multiply it with 2048 to get the actual file offset

BlockCount - the size of the file. And as with StartBlock you have to multiply it with 2048 to get the actual file size

Name - the filename, padded with 0's to fill out it's 24 bytes.

Examples

-

To Do

-

Author

Dan Strandberg Game-Editing.net

See Also

*.img

Programs

IMG Edit

File Formats

Last change: 24 August 2002

unofficial GTA III Reference