Difference between revisions of "FF9/IMGRootDir"

From Final Fantasy Inside
< FF9
Jump to navigation Jump to search
my_wiki>Cyberman
 
m (5 revisions imported)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
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.  
 
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.
+
note: [[FF9/glossary/sector|sector]] hereon refers to a 2048 byte chunk of the file keep this in mind when 'deciphering' information.
  
 
==Root Directory Header==
 
==Root Directory Header==
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?)
 +
|-
 +
|}
 +
 
 +
Directory Types
 +
{| border="0" cellspacing="1" cellpadding="3" style="background: rgb(0,0,0)" align="center"
 +
! style="background:rgb(204,204,204);" align="center" | Number
 +
! style="background:rgb(204,204,204);" align="left" | Description
 +
|-
 +
| style="background:rgb(255,255,255);" | 0x02
 +
| style="background:rgb(255,255,255);" | Normal subdirectory contains normal files.
 +
|-
 +
| style="background:rgb(255,255,255);" | 0x03
 +
| style="background:rgb(255,255,255);" | Heirarchical directory.
 +
|-
 +
| style="background:rgb(255,255,255);" | 0x04
 +
| style="background:rgb(255,255,255);" | Not a directory but indicates the end of the directory list.
 +
|-
 +
|}

Latest revision as of 05:25, 23 May 2019

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?)

Directory Types

Number Description
0x02 Normal subdirectory contains normal files.
0x03 Heirarchical directory.
0x04 Not a directory but indicates the end of the directory list.