mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user