Editing Files.db
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category:Software]]<noinclude>[[Category:Main]]</noinclude> | [[Category:Software]]<noinclude>[[Category:Main]]</noinclude> | ||
== files.db structure == | == files.db structure == | ||
Line 9: | Line 5: | ||
files.db is organized in blocks of 1024 bytes, the first block is the header of the file, its structure is still unknown. | files.db is organized in blocks of 1024 bytes, the first block is the header of the file, its structure is still unknown and unnecessary for this tool. | ||
Each block contains 4 sub-blocks : | Each block contains 4 sub-blocks : | ||
Line 17: | Line 13: | ||
* File informations (9 entries) | * File informations (9 entries) | ||
* Hashes block? | * Hashes block? | ||
=== Block header === | === Block header === | ||
Line 24: | Line 18: | ||
0x10 bytes wide, structure is uncertain. | 0x10 bytes wide, structure is uncertain. | ||
<pre> | <pre>typedef struct { | ||
typedef struct { | |||
u32 id; | u32 id; | ||
u32 type; | u32 type; | ||
u32 nfiles; | u32 nfiles; | ||
u32 unk1; | u32 unk1; | ||
} | } bhead;</pre> | ||
</pre> | |||
'''id''' : | '''id''' : | ||
Line 88: | Line 79: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! File/Dir | !File/Dir | ||
!idx (fname) | |||
!idx (finfo) | |||
!Path | |||
|- | |- | ||
| lol.png | |lol.png | ||
|2 | |||
|3 | |||
|/images/abcd/lol.png | |||
|- | |- | ||
| abcd/ | |abcd/ | ||
|1 | |||
|2 | |||
|/images/abcd/ | |||
|- | |- | ||
| images/ | |images/ | ||
|0 | |||
|1 | |||
|/images/ | |||
|- | |- | ||
| eboot.bin | |eboot.bin | ||
|0 | |||
|4 | |||
|/eboot.bin | |||
|} | |} | ||
'''type''' : | '''type''' : | ||
* | * 0x01 = normal file | ||
* 0x8000 = | * 0x8000 = directory | ||
* 0x4006 = | * 0x4006 = unencrypted system file | ||
* | * 0x06 = encrypted system file | ||
'''unk1''' : | '''unk1''' : |