Game.TOC Initial Entry Offset

Post Reply
User avatar
StarkNebula
Posts: 69
Joined: Fri Feb 21, 2014 5:58 am
Location: Toronto, Canada
Contact:

Game.TOC Initial Entry Offset

Post by StarkNebula » Tue Aug 05, 2014 6:08 pm

Game.TOC is rather simple and document on YAGCD. However, the initial offset the first file is given seems arbitrary. Does anyone know how it is determined?
Image
Examples are: Super Monkey Ball 2; F-Zero GX.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Game.TOC Initial Entry Offset

Post by emu_kidid » Tue Aug 05, 2014 11:02 pm

F-Zero GX is a big game if I recall correctly, maybe it's determined by ((size of disc)-(header crap))-(sum of all the game file sizes).
Image
User avatar
StarkNebula
Posts: 69
Joined: Fri Feb 21, 2014 5:58 am
Location: Toronto, Canada
Contact:

Re: Game.TOC Initial Entry Offset

Post by StarkNebula » Wed Aug 06, 2014 2:52 am

I thought the same, but doing the math, &&SystemData only adds up to 1.7Mb for GX and 1.9Mb for SMB2. However, GX is offset by ~21Mb, and SMB2 a whopping 423Mb. So I really don't get what's going on. (Well, SMB2 is odd for sure, it's index isn't linearly incremental, sometimes the offset goes up, then down, then back up (rather than always up.))
Post Reply