mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add support for negative sectors to read and write sector calls in images.
This commit is contained in:
@@ -86,7 +86,7 @@ public sealed partial class VTOC : IPartition
|
||||
0, 1, 8, 29
|
||||
}.TakeWhile(i => i + sectorOffset < imagePlugin.Info.Sectors))
|
||||
{
|
||||
errno = imagePlugin.ReadSector(i + sectorOffset, out pdsector, out _);
|
||||
errno = imagePlugin.ReadSector(i + sectorOffset, false, out pdsector, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) continue;
|
||||
|
||||
@@ -169,7 +169,7 @@ public sealed partial class VTOC : IPartition
|
||||
|
||||
magicFound = false;
|
||||
var useOld = false;
|
||||
errno = imagePlugin.ReadSector(pdloc + sectorOffset + 1, out byte[] vtocsector, out _);
|
||||
errno = imagePlugin.ReadSector(pdloc + sectorOffset + 1, false, out byte[] vtocsector, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return false;
|
||||
|
||||
@@ -249,7 +249,7 @@ public sealed partial class VTOC : IPartition
|
||||
return false;
|
||||
}
|
||||
|
||||
errno = imagePlugin.ReadSectors(relSecPtr + sectorOffset, secCount, out byte[] tmp, out _);
|
||||
errno = imagePlugin.ReadSectors(relSecPtr + sectorOffset, false, secCount, out byte[] tmp, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user