Difference between revisions of "FF9/IMGRootDir"

From Final Fantasy Inside
< FF9
Jump to navigation Jump to search
my_wiki>Cyberman
(Root Directory)
my_wiki>Cyberman
(Root Directory Entries)
Line 30: Line 30:
  
 
==Root Directory Entries==
 
==Root Directory Entries==
Following the initial Header
+
Following the Root Directory header are the entries for the subdirectories.
 +
 
 +
{| border="0" cellspacing="1" cellpadding="3" style="background: rgb(0,0,0)" align="center"
 +
! style="background:rgb(204,204,204);" align="center" | Name
 +
! style="background:rgb(204,204,204);" align="center" | Units/Size
 +
! style="background:rgb(204,204,204);" align="left" | Description
 +
|-
 +
| style="background:rgb(255,255,255);" | Type
 +
| style="background:rgb(255,255,255);" | DWORD
 +
| style="background:rgb(255,255,255);" | The type of subdirectory this is
 +
|-
 +
| style="background:rgb(255,255,255);" | File Count
 +
| style="background:rgb(255,255,255);" | DWORD
 +
| style="background:rgb(255,255,255);" | This gives the number of files within the subdirectory.
 +
|-
 +
| style="background:rgb(255,255,255);" | Directory Information Sector
 +
| style="background:rgb(255,255,255);" | DWORD
 +
| style="background:rgb(255,255,255);" | Sector that contains the directory information (IE file sector list).
 +
|-
 +
| style="background:rgb(255,255,255);" | First File Sector
 +
| style="background:rgb(255,255,255);" | DWORD
 +
| style="background:rgb(255,255,255);" | This points to the sector of the first file (for fast reference?)
 +
|-
 +
}

Revision as of 22:42, 6 May 2006

Root Directory

The first sector of FF9.IMG contains a root directory of information with sector locations for subdirectories and the sector of the first file in that subdirectory.

note: sector hereon refers to a 2048 byte chunk of the file keep this in mind when 'deciphering' information.

Root Directory Header

The root directory begins with the following header format

Name Units/Size Description
Signature char[4] 'FF9'\0 (signature to indicate it's an FF9 data file likely)
unknown DWORD No information available at this time
Directory Count DWORD This contains the number of directories in the FF9.IMG file.
unknown DWORD No information available at this time

Root Directory Entries

Following the Root Directory header are the entries for the subdirectories.

}
Name Units/Size Description
Type DWORD The type of subdirectory this is
File Count DWORD This gives the number of files within the subdirectory.
Directory Information Sector DWORD Sector that contains the directory information (IE file sector list).
First File Sector DWORD This points to the sector of the first file (for fast reference?)