mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Update ReadSector and ReadSectors methods to include sector status output
This commit is contained in:
@@ -63,8 +63,8 @@ public sealed partial class ODS
|
||||
|
||||
if(imagePlugin.Info.SectorSize < 512) return false;
|
||||
|
||||
byte[] magicB = new byte[12];
|
||||
ErrorNumber errno = imagePlugin.ReadSector(1 + partition.Start, out byte[] hbSector);
|
||||
var magicB = new byte[12];
|
||||
ErrorNumber errno = imagePlugin.ReadSector(1 + partition.Start, out byte[] hbSector, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return false;
|
||||
|
||||
@@ -80,7 +80,7 @@ public sealed partial class ODS
|
||||
|
||||
if(hbSector.Length < 0x400) return false;
|
||||
|
||||
errno = imagePlugin.ReadSector(partition.Start, out hbSector);
|
||||
errno = imagePlugin.ReadSector(partition.Start, out hbSector, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return false;
|
||||
|
||||
@@ -102,7 +102,7 @@ public sealed partial class ODS
|
||||
|
||||
var sb = new StringBuilder();
|
||||
|
||||
ErrorNumber errno = imagePlugin.ReadSector(1 + partition.Start, out byte[] hbSector);
|
||||
ErrorNumber errno = imagePlugin.ReadSector(1 + partition.Start, out byte[] hbSector, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return;
|
||||
|
||||
@@ -115,7 +115,7 @@ public sealed partial class ODS
|
||||
{
|
||||
if(hbSector.Length < 0x400) return;
|
||||
|
||||
errno = imagePlugin.ReadSector(partition.Start, out byte[] tmp);
|
||||
errno = imagePlugin.ReadSector(partition.Start, out byte[] tmp, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user