Move detection of missing data from multisession CDRWin images to after we know if it is a CD image or not.

This commit is contained in:
2021-06-30 22:32:11 +01:00
parent a107242d2c
commit 0611c508bc

View File

@@ -822,12 +822,6 @@ namespace Aaru.DiscImages
}
}
if(currentSession > 1 &&
leadouts.Count == 0 &&
!_discImage.IsRedumpGigadisc)
throw new
FeatureUnsupportedImageException("This image is missing vital multi-session data and cannot be read correctly.");
if(currentTrack.Sequence != 0)
{
currentFile.Sequence = currentTrack.Sequence;
@@ -1493,6 +1487,13 @@ namespace Aaru.DiscImages
(mediaTypeAsInt >= 171 && mediaTypeAsInt <= 179) ||
(mediaTypeAsInt >= 740 && mediaTypeAsInt <= 749);
if(currentSession > 1 &&
leadouts.Count == 0 &&
!_discImage.IsRedumpGigadisc &&
_isCd)
throw new
FeatureUnsupportedImageException("This image is missing vital multi-session data and cannot be read correctly.");
if(!_isCd)
{
_imageInfo.ReadableSectorTags.Remove(SectorTagType.CdSectorSync);