Editing Files.db

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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>


*Path: /[[sce_pfs|sce_pfs]]/files.db
*Path: pd0:app/NPXS10007/sce_pfs/files.db
*Size: variable
*Size: 30KB


== files.db structure ==
== files.db structure ==
Line 24: Line 24:
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;
} block_header;
} bhead;</pre>
</pre>
 
'''id''' :
'''id''' :


Line 88: Line 85:


{| class="wikitable sortable"
{| class="wikitable sortable"
! File/Dir !! idx (fname) !! idx (finfo) !! Path
!File/Dir
!idx (fname)
!idx (finfo)
!Path
|-
|-
| lol.png || 2 || 3 || /images/abcd/lol.png
|lol.png
|2
|3
|/images/abcd/lol.png
|-
|-
| abcd/ || 1 || 2 || /images/abcd/
|abcd/
|1
|2
|/images/abcd/
|-
|-
| images/ || 0 || 1 || /images/
|images/
|0
|1
|/images/
|-
|-
| eboot.bin || 0 || 4 || /eboot.bin
|eboot.bin
|0
|4
|/eboot.bin
|}
|}


'''type''' :
'''type''' :


* 0x1 = normal file
* 0x01 = normal file
* 0x8000 = dir (directory)
* 0x8000 = directory
* 0x4006 = nenc (non encrypted file)
* 0x4006 = unencrypted system file
* 0x6 = sys (system file)
* 0x06 = encrypted system file


'''unk1''' :
'''unk1''' :
Please note that all contributions to Vita Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see Vita Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)