mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 18:16:24 +00:00
Make OmniDrive trim and error retry audio sectors correctly.
This commit is contained in:
@@ -506,8 +506,9 @@ partial class Dump
|
||||
|
||||
// MEDIUM ERROR, retry with ignore error below
|
||||
if(decSense is { ASC: 0x11 })
|
||||
if(!sectorsNotEvenPartial.Contains(badSector))
|
||||
sectorsNotEvenPartial.Add(badSector);
|
||||
{
|
||||
if(!sectorsNotEvenPartial.Contains(badSector)) sectorsNotEvenPartial.Add(badSector);
|
||||
}
|
||||
}
|
||||
|
||||
// Because one block has been partially used to fix the offset
|
||||
@@ -553,6 +554,13 @@ partial class Dump
|
||||
|
||||
Array.Copy(sector, 0, cmdBuf, 0, sectorSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
_resume.BadBlocks.Remove(badSector);
|
||||
extents.Add(badSector);
|
||||
_mediaGraph?.PaintSectorGood(badSector);
|
||||
sectorsNotEvenPartial.Remove(badSector);
|
||||
}
|
||||
}
|
||||
else if(!audioExtents.Contains(badSector) && _paranoia)
|
||||
{
|
||||
|
||||
@@ -444,6 +444,12 @@ partial class Dump
|
||||
|
||||
Array.Copy(sector, 0, cmdBuf, 0, sectorSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
_resume.BadBlocks.Remove(badSector);
|
||||
extents.Add(badSector);
|
||||
_mediaGraph?.PaintSectorGood(badSector);
|
||||
}
|
||||
}
|
||||
else if(!audioExtents.Contains(badSector) && _paranoia)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user