Search
lxdream.org :: lxdream/src/gdrom/cdi.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/cdi.c
changeset 236:581a9f8bf6a6
prev168:203a72138e16
next342:850502f0e8de
author nkeynes
date Thu Dec 14 11:58:18 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Add 2-second offset to LBA addresses. Strangely enough needed to make
anything actually work.
file annotate diff log raw
1.1 --- a/src/gdrom/cdi.c Mon Jun 26 10:30:42 2006 +0000
1.2 +++ b/src/gdrom/cdi.c Thu Dec 14 11:58:18 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: cdi.c,v 1.3 2006-06-26 10:30:42 nkeynes Exp $
1.6 + * $Id: cdi.c,v 1.4 2006-12-14 11:58:18 nkeynes Exp $
1.7 *
1.8 * CDI CD-image file support
1.9 *
1.10 @@ -122,7 +122,7 @@
1.11 fseek( f, (int)fnamelen, SEEK_CUR ); /* skip over the filename */
1.12 fread( &trk, sizeof(trk), 1, f );
1.13 disc->track[total_tracks].session = i;
1.14 - disc->track[total_tracks].lba = trk.start_lba;
1.15 + disc->track[total_tracks].lba = trk.start_lba + 150;
1.16 disc->track[total_tracks].sector_count = trk.length;
1.17 switch( trk.mode ) {
1.18 case 0:
.