Advertisement
Bring_Stabity

SRW file structure

Jan 17th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. SRW UX .bin file layout.
  2.  
  3. Header section: 4 byte pointers to "the end of the section +1" (this is equivalent to "the start of the next section" except that the final pointer points one byte past the end of the file). The header is 0 padded to reach the end of it's allocated space. All pointers in the header are little-endian (read right to left)
  4.  
  5. ECD (Body) section: Must be aligned to a multiple of 0x80 (00 or 80).
  6. sub-header:
  7. 0x0: 45 43 44 01 (ECD ) Magic nummber for section
  8. 0x4: four bytes, offset to "start of data -6" (I might be mistaken on this because this sounds stupid). The value is always 8 in what I've seen
  9. 0x8: four bytes, size of data.
  10. 0xC: two bytes of 0 padding
  11. 0xE: start of data
  12. 0 padding to reach next section.
  13. The offset and size ints are big-endian (read left to right). Why would you mix endian-ness in your data structure?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement