Commandos1 DIR File Structure Table
Commandos1 DIR File Structure Table
written by F.R.C.
Data Area |
Data Block |
Data |
Data Type |
Length |
Description |
Sample Data |
Header DA |
File DB |
Name |
String |
32 |
File name, ends with 0x00, and follows with a few 0xCD, directory tails' are "DIRECTOR.FIN" |
4441544F5300CDCD...(DATOS) |
Type |
Int32 |
4 |
0x00CDCDCD for files, 0x01CDCDCD for directories, 0xFFCDCDCD for directory tails |
00CDCDCD/01CDCDCD/FFCDCDCD |
||
Length |
Int32 |
4 |
0x00000000 for directories |
90980900 |
||
Address |
Int32 |
4 |
File data address. for directories, it's the address of the first File DB in the directory |
48DA0000 |
||
There's many File DBs. For directories, they are matched by the directories' File DBs and their tail File DBs where File DB and Name is null, Type is 0xFFCDCDCD and Length and Address is 0xFFFFFFFF |
||||||
Data DA |
Data DB |
|
|
|
File data, no alignment |
|
There's many Data DBs |
Notice:
1. All numerical data types are in little-endian.
2.The directory File DB match pattern: directories and directory tails match in a way like the monolayer brackets, which is different from PCK file of Comm2, namely:
DATOS{
BRIEF_MP
FONTS
MISIONES
RECURSOS
}
BRIF_MP{
MO.ZOM
...
}
...