Found at 80012C0C
Summary
Writes the position and size of a file on the CD located by the caller passed index into the caller passed CdlFile struct.
Behavior
Get the bottom 20 bits of the cd lookup table entry which corresponds to the position of the file on the CD in LBA format and pass it to a call to CdIntToPos along with the memory address of the CdlFile struct that will hold our position and size. Then get the upper 12 bits of the entry to extract its size and multiply by 2048 to change the size from sector count to bytes and assign that to the size member of the CdlFile struct. The caller passed struct now holds the BCD MSF position and size of the file in bytes of a file.
Notes
- BCD is binary coded decimal and MSF is Minute Second Frame.
Function Signature
Parameters: 2
CdlFile* cdlFileStruct : A pointer to a CdlFile struct. int index: The index for the cd file table.