Search
lxdream.org :: lxdream/src/gdrom/gdi.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdi.c
changeset 836:d314bf370949
prev759:f16975739abc
next1023:264e2fd90be8
author nkeynes
date Thu Aug 28 00:08:12 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Change so all tracks after sector 45000 belong to session 1, even if they don't have a valid lba
file annotate diff log raw
1.1 --- a/src/gdrom/gdi.c Mon Jul 21 01:01:39 2008 +0000
1.2 +++ b/src/gdrom/gdi.c Thu Aug 28 00:08:12 2008 +0000
1.3 @@ -57,6 +57,7 @@
1.4 gdrom_image_t image;
1.5 struct stat st;
1.6 char line[512];
1.7 + int session = 0;
1.8 gchar *dirname;
1.9
1.10 fseek(f, 0, SEEK_SET);
1.11 @@ -89,10 +90,9 @@
1.12 sscanf( line, "%d %d %d %d %s %d", &track_no, &start_lba, &flags, &size,
1.13 filename, &offset );
1.14 if( start_lba >= 45000 ) {
1.15 - image->track[i].session = 1;
1.16 - } else {
1.17 - image->track[i].session = 0;
1.18 + session = 1;
1.19 }
1.20 + image->track[i].session = session;
1.21 image->track[i].lba = start_lba + 150; // 2-second offset
1.22 image->track[i].flags = (flags & 0x0F)<<4;
1.23 image->track[i].sector_size = size;
.