In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

/title/00000001/00000002/data/cache.dat

From WiiBrew
Jump to navigation Jump to search

The cache.dat file holds certain data from the last run disc on the Wii to speed up running it again.

It caches:

  • Drive info (?) 0x20 bytes
0000000: 0000 0002 2007 0213 4100 0000 0000 0000  .... ...A.......
0000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
  • Disk ID (and magic) 0x20 bytes
0000020: 3435 3845 3031 0000 0000 0000 0000 0000  458E01..........
0000030: 0000 0000 0000 0000 5d1c 9ea3 0000 0000  ........].......
  • "Game TOC" 0x20 bytes -- number of partitions, offset to partition map
0000040: 0000 0002 0001 0008 0000 0000 0000 0000  ................
0000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
  • "Partition info" (variable, padded to 0x20 bytes?)
0000060: 0001 4000 0000 0001 03e0 0000 0000 0000  ..@.............
0000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................

The rest of the offsets may be shifted based on the size of the partition info.

  • "Boot info 3" (?) 0x2000 bytes -- region age limits, magic?
0000080: 0000 0001 0000 0000 0000 0000 0000 0000  ................
0000090: 8003 8080 8080 8080 8080 8080 8080 8080  ................
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
*
0002070: 0000 0000 0000 0000 0000 0000 c3f8 1a8e  ................
  • Disc TMD, 0x4A00 bytes
0002080: 0001 0001 abe0 7836 4d1e 991f 3672 3e78  ......x6M...6r>x
0002090: 703a b607 0136 8248 769f d033 479e 9b6a  p:...6.Hv..3G..j
[...]
  • "Apploader header" 0x20 bytes
0006a80: 3230 3038 2f30 322f 3239 0000 0000 0000  2008/02/29......
0006a90: 8120 0294 0000 1b3c 0003 9ca0 0000 0000  . .....<........
  • Apploader (variable)
  • "Apploader load" (? -- presumably the DOL)
    • Header?
00085e0: 0000 f740 0005 cb40 0000 0020 0000 0020  ...@...@... ... 
00085f0: 803f ff80 0005 e000 3fd9 1ff8 0000 0000  .?......?.......
0008600: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0008610: 0000 0000 0000 0000 0000 0000 0000 0001  ................
0008620: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0008630: 0000 0000 0000 0000 0000 0000 0000 0001  ................
0008640: 0000 0001 0000 0005 0000 0000 0400 0000  ................
    • DOL
000a620: 0000 0100 0000 25e0 0000 0000 0000 0000  ......%.........
000a630: 0000 0000 0000 0000 0000 0000 000f 2360  ..............#`
000a640: 000f 2720 000f 2ce0 000f 2d00 000f 2d20  ..' ..,...-...- 
[...]
  • FST?
  • Banner (variable)

The rest of the data in the cache file is garbage; the filesize is always 11534336 bytes, and old data will stay in the cache until it is overwritten.