SARC: Difference between revisions

ObsidianX (talk | contribs)
SARC file format
 
PabloMK7 (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 23: Line 23:
|  0x06
|  0x06
|  0x02
|  0x02
|  Byte-order marker (0xFFFE = big, 0xFEFF = little)
|  Byte-order marker (0xFEFF = big, 0xFFFE = little)
|-
|-
|  0x08
|  0x08
Line 147: Line 147:
== File Sort Order ==
== File Sort Order ==


Files are sorted by their hash in the SFAT table.  Games seem to require this sorting as any other sort order prevents them from booting.
Files are sorted by their hash in the SFAT table, games require this sorting as they use a binary search algorithm [https://en.wikipedia.org/wiki/Binary_search_algorithm].