Difference between revisions of "FF9/IMGRootDir"
< FF9
Jump to navigation
Jump to search
my_wiki>Cyberman (→Root Directory Entries) |
my_wiki>Cyberman (→Root Directory Entries) |
||
Line 53: | Line 53: | ||
| style="background:rgb(255,255,255);" | This points to the sector of the first file (for fast reference?) | | 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. | ||
+ | |- | ||
+ | |} |
Revision as of 22:48, 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?) |
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. |