1.1 --- a/src/gdrom/gdimage.c Mon Jun 08 04:12:21 2009 +0000
1.2 +++ b/src/gdrom/gdimage.c Mon Jun 22 01:13:16 2009 +0000
1.7 +void gdrom_set_disc_type( gdrom_disc_t disc )
1.9 + int type = IDE_DISC_NONE, i;
1.10 + for( i=0; i<disc->track_count; i++ ) {
1.11 + if( disc->track[i].mode == GDROM_CDDA ) {
1.12 + if( type == IDE_DISC_NONE )
1.13 + type = IDE_DISC_AUDIO;
1.14 + } else if( disc->track[i].mode == GDROM_MODE1 || disc->track[i].mode == GDROM_RAW_NONXA ) {
1.15 + if( type != IDE_DISC_CDROMXA )
1.16 + type = IDE_DISC_CDROM;
1.18 + type = IDE_DISC_CDROMXA;
1.22 + disc->disc_type = type;
1.26 * Determine the start position in a raw sector, and the amount of data to read
1.27 * in bytes, for a given combination of sector mode and read mode.