Search
lxdream.org :: lxdream/src/gdrom/cdi.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/cdi.c
changeset 513:ae1dea71613d
prev468:3a49695e081a
next561:533f6b478071
author nkeynes
date Thu Nov 15 08:16:10 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Add support for CDI V4
file annotate diff log raw
1.1 --- a/src/gdrom/cdi.c Sun Oct 28 07:23:46 2007 +0000
1.2 +++ b/src/gdrom/cdi.c Thu Nov 15 08:16:10 2007 +0000
1.3 @@ -45,7 +45,6 @@
1.4 };
1.5
1.6 struct cdi_track_data {
1.7 - char unknown[0x19];
1.8 uint32_t pregap_length;
1.9 uint32_t length;
1.10 char unknown2[6];
1.11 @@ -136,6 +135,13 @@
1.12 fseek( f, 4, SEEK_CUR );
1.13 fread( &fnamelen, 1, 1, f );
1.14 fseek( f, (int)fnamelen, SEEK_CUR ); /* skip over the filename */
1.15 + fseek( f, 19, SEEK_CUR );
1.16 + fread( &new_fmt, sizeof(new_fmt), 1, f );
1.17 + if( new_fmt == 0x80000000 ) {
1.18 + fseek( f, 10, SEEK_CUR );
1.19 + } else {
1.20 + fseek( f, 2, SEEK_CUR );
1.21 + }
1.22 fread( &trk, sizeof(trk), 1, f );
1.23 image->track[total_tracks].session = i;
1.24 image->track[total_tracks].lba = trk.start_lba + 150;
.