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)
|
if(options.Force)
|
||||||
{
|
{
|
||||||
useLong = false;
|
if(sectorTag != SectorTagType.CdTrackFlags && sectorTag != SectorTagType.CdTrackIsrc &&
|
||||||
|
sectorTag != SectorTagType.CdSectorSubchannel) useLong = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -311,6 +312,9 @@ namespace DiscImageChef.Commands
|
|||||||
|
|
||||||
foreach(MediaTagType mediaTag in inputFormat.Info.ReadableMediaTags)
|
foreach(MediaTagType mediaTag in inputFormat.Info.ReadableMediaTags)
|
||||||
{
|
{
|
||||||
|
if(options.Force && !outputFormat.SupportedMediaTags.Contains(mediaTag))
|
||||||
|
continue;
|
||||||
|
|
||||||
DicConsole.WriteLine("Converting media tag {0}", mediaTag);
|
DicConsole.WriteLine("Converting media tag {0}", mediaTag);
|
||||||
byte[] tag = inputFormat.ReadDiskTag(mediaTag);
|
byte[] tag = inputFormat.ReadDiskTag(mediaTag);
|
||||||
if(outputFormat.WriteMediaTag(tag, mediaTag)) continue;
|
if(outputFormat.WriteMediaTag(tag, mediaTag)) continue;
|
||||||
@@ -412,6 +416,9 @@ namespace DiscImageChef.Commands
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(options.Force && !outputFormat.SupportedSectorTags.Contains(tag))
|
||||||
|
continue;
|
||||||
|
|
||||||
doneSectors = 0;
|
doneSectors = 0;
|
||||||
while(doneSectors < inputFormat.Info.Sectors)
|
while(doneSectors < inputFormat.Info.Sectors)
|
||||||
{
|
{
|
||||||
@@ -547,6 +554,9 @@ namespace DiscImageChef.Commands
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(options.Force && !outputFormat.SupportedSectorTags.Contains(tag))
|
||||||
|
continue;
|
||||||
|
|
||||||
foreach(Track track in tracks)
|
foreach(Track track in tracks)
|
||||||
{
|
{
|
||||||
doneSectors = 0;
|
doneSectors = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user