mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
🐛Fix converting image when sector subchannels are not supported on output and force is specified.
This commit is contained in:
@@ -243,7 +243,8 @@ namespace DiscImageChef.Commands
|
||||
|
||||
if(options.Force)
|
||||
{
|
||||
useLong = false;
|
||||
if(sectorTag != SectorTagType.CdTrackFlags && sectorTag != SectorTagType.CdTrackIsrc &&
|
||||
sectorTag != SectorTagType.CdSectorSubchannel) useLong = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -311,6 +312,9 @@ namespace DiscImageChef.Commands
|
||||
|
||||
foreach(MediaTagType mediaTag in inputFormat.Info.ReadableMediaTags)
|
||||
{
|
||||
if(options.Force && !outputFormat.SupportedMediaTags.Contains(mediaTag))
|
||||
continue;
|
||||
|
||||
DicConsole.WriteLine("Converting media tag {0}", mediaTag);
|
||||
byte[] tag = inputFormat.ReadDiskTag(mediaTag);
|
||||
if(outputFormat.WriteMediaTag(tag, mediaTag)) continue;
|
||||
@@ -412,6 +416,9 @@ namespace DiscImageChef.Commands
|
||||
continue;
|
||||
}
|
||||
|
||||
if(options.Force && !outputFormat.SupportedSectorTags.Contains(tag))
|
||||
continue;
|
||||
|
||||
doneSectors = 0;
|
||||
while(doneSectors < inputFormat.Info.Sectors)
|
||||
{
|
||||
@@ -546,6 +553,9 @@ namespace DiscImageChef.Commands
|
||||
// This tags are inline in long sector
|
||||
continue;
|
||||
}
|
||||
|
||||
if(options.Force && !outputFormat.SupportedSectorTags.Contains(tag))
|
||||
continue;
|
||||
|
||||
foreach(Track track in tracks)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user