User Tools

Site Tools


cache_structure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cache_structure [2022/11/08 19:33] – [Table] johnsanccache_structure [2022/11/24 14:30] (current) johnsanc
Line 2: Line 2:
 RomVault stores all information about scanned and datted files in the RomVault Cache. This cache file is essentially a highly optimized database that includes filenames, sizes, hashes, modified timestamps, and pertinent flags to track various ROM statuses. RomVault stores all information about scanned and datted files in the RomVault Cache. This cache file is essentially a highly optimized database that includes filenames, sizes, hashes, modified timestamps, and pertinent flags to track various ROM statuses.
  
-|**ⓘ NOTE:** \\ This page is under construction and should not be considered comprehensive or entirely accurate.|+<WRAP info>This page is for low level debugging reference only. You should never need to look at the cache contents in a hex editor, but if you do the tables below help to explain the cache structure. This page is under construction and should not be considered comprehensive.</WRAP>
  
 ===== RomVault 3.5.x Cache =====  ===== RomVault 3.5.x Cache ===== 
Line 58: Line 58:
 | 0x000000B2                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''084461745661756C \\ 74''                                                                        | 8 characters + "DatVault"                                | | 0x000000B2                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''084461745661756C \\ 74''                                                                        | 8 characters + "DatVault"                                |
 | 0x000000BB                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''0B''                                                                                            | URL                                                      | | 0x000000BB                            | 1             | DAT Attribute ID      | [[#Enums|Flag for Dat attribute]]            | ''0B''                                                                                            | URL                                                      |
-| 0x000000BC                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''107777772E646174 \\ 7661756C742E636F \\ 6D''                                                    | 10 characters + "www.datvault.com"                       |+| 0x000000BC                            | varies        | DAT Attribute Value   | Length + attribute value                     | ''107777772E646174 \\ 7661756C742E636F \\ 6D''                                                    | 16 characters + "www.datvault.com"                       |
 | 0x000000CD                            | 4             | Child Count                                                        | ''4E000000''                                                                                      | 78 children                                              | | 0x000000CD                            | 4             | Child Count                                                        | ''4E000000''                                                                                      | 78 children                                              |
 +| ... (end of group)                    | 4             | File Status           | Status of the file / group                   | ''00000000''                                                                                      |                                                          |
 ^ File Type 1 - Directory within a DAT                                                                                                                                                                                                                                                   |||||| ^ File Type 1 - Directory within a DAT                                                                                                                                                                                                                                                   ||||||
 | 0x000000D1                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''01''                                                                                            | Directory                                                | | 0x000000D1                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''01''                                                                                            | Directory                                                |
Line 72: Line 73:
 | 0x0000010C                            | 1             | Tree Selected         | [[#Enums|Flag for tree selection]]           | ''00''                                                                                            | Not selected                                             | | 0x0000010C                            | 1             | Tree Selected         | [[#Enums|Flag for tree selection]]           | ''00''                                                                                            | Not selected                                             |
 | 0x0000010D                            | 4             | Child Count           | Number of DATs in the directory              | ''01000000''                                                                                      | 1 child of the directory                                 | | 0x0000010D                            | 4             | Child Count           | Number of DATs in the directory              | ''01000000''                                                                                      | 1 child of the directory                                 |
 +| ... (end of group)                    | 4             | File Status           | Status of the file / group                   | ''00000000''                                                                                      |                                                          |
 ^ File Type 2 - ZIP Archive                                                                                                                                                                                                                                                              |||||| ^ File Type 2 - ZIP Archive                                                                                                                                                                                                                                                              ||||||
 | 0x00000111                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''02''                                                                                            | ZIP archive                                              | | 0x00000111                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''02''                                                                                            | ZIP archive                                              |
Line 86: Line 88:
 | 0x00000147                            | varies        | Game Attribute Value  | Length + attribute value                     | ''1A54686520434420 \\ 47616D6573205061 \\ 636B20284575726F \\ 706529''                            | 26 characters + "The CD Games Pack (Europe)"             | | 0x00000147                            | varies        | Game Attribute Value  | Length + attribute value                     | ''1A54686520434420 \\ 47616D6573205061 \\ 636B20284575726F \\ 706529''                            | 26 characters + "The CD Games Pack (Europe)"             |
 | 0x00000162                            | 4             | Child Count           | Number of children                           | ''25000000''                                                                                      | 37 children                                              | | 0x00000162                            | 4             | Child Count           | Number of children                           | ''25000000''                                                                                      | 37 children                                              |
 +| ... (end of group)                    | 4             | File Status           | Status of the file / group                   | ''00000000''                                                                                      |                                                          |
 ^ File Type 5 - File In ZIP                                                                                                                                                                                                                                                              |||||| ^ File Type 5 - File In ZIP                                                                                                                                                                                                                                                              ||||||
 | 0x00000166                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''02''                                                                                            | File in ZIP                                              | | 0x00000166                            | 1             | Child Type            | [[#Enums|Flag for file type]]                | ''02''                                                                                            | File in ZIP                                              |
Line 97: Line 100:
 | 0x0000018D                            | 8             | Size                  | File size in bytes                           | ''0ECB470000000000''                                                                              | 4705038 bytes                                            | | 0x0000018D                            | 8             | Size                  | File size in bytes                           | ''0ECB470000000000''                                                                              | 4705038 bytes                                            |
 | 0x00000195                            | 5             | CRC                   | Bytes + CRC32  hash                          | ''04CD81D84C''                                                                                    | "04" + CRC32                                             | | 0x00000195                            | 5             | CRC                   | Bytes + CRC32  hash                          | ''04CD81D84C''                                                                                    | "04" + CRC32                                             |
-| 0x0000019A                            | 21            | SHA1                  | Bytes + SHA1 hash                            | ''207FF61CFF0659DE \\ E1F269C7E3A2E18B \\ 9567979F84''                                            | "21" + SHA1                                              | +| 0x0000019A                            | 21            | SHA1                  | Bytes + SHA1 hash                            | ''207FF61CFF0659DE \\ E1F269C7E3A2E18B \\ 9567979F84''                                            | "20" + SHA1                                              | 
-| 0x000001AF                            | 16            | MD5                   | Bytes + MD5 hash                             | ''16D491169D7CB4DA \\ 414208465B0027BD \\ 21''                                                    | "16 + MD5                                                |+| 0x000001AF                            | 16            | MD5                   | Bytes + MD5 hash                             | ''16D491169D7CB4DA \\ 414208465B0027BD \\ 21''                                                    | "16+ MD5                                                |
 | 0x000001C0                            | 4             | File Status           | Flags for file status                        | ''1E000000''                                                                                      | SizeFromDAT, CRCFromDAT, SHA1FromDAT, MD5FromDAT         | | 0x000001C0                            | 4             | File Status           | Flags for file status                        | ''1E000000''                                                                                      | SizeFromDAT, CRCFromDAT, SHA1FromDAT, MD5FromDAT         |
-^ Footer                                                                                                                                                                                                                                                                                 |||||| +... (end of group)                    4             File Status           Status of the file / group                   | ''00000000''                                                                                      |                                                          | 
-| 0x00000000                            | 11            | ???                   |                                              | ''000000000000C000 \\ 000000''                                                                    |                                                          | +^ End of Cache                                                                                                                                                                                                                                                                           ||||||
-                                      8             End Cache             Marker to signify the end of the cache       ''A7DD00A615000000''                                                                              |                                                          |+
  
  
cache_structure.1667964792.txt.gz · Last modified: 2022/11/08 19:33 by johnsanc