Update ReadSector and ReadSectors methods to include sector status output

This commit is contained in:
2025-10-22 14:28:58 +01:00
parent 1003088cc3
commit 0ac2a48fb6
238 changed files with 5881 additions and 5196 deletions

View File

@@ -159,6 +159,7 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
lifetime!.Shutdown();
}
// TODO: Show message when sector was not dumped
void LoadSector()
{
Lines.Clear();
@@ -167,7 +168,7 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
if(_longMode)
{
ErrorNumber errno = _imageFormat.ReadSectorLong(CurrentSector, out sector);
ErrorNumber errno = _imageFormat.ReadSectorLong(CurrentSector, out sector, out _);
if(errno != ErrorNumber.NoError)
{
@@ -177,7 +178,7 @@ public sealed partial class HexViewWindowViewModel : ViewModelBase
}
}
else
_imageFormat.ReadSector(CurrentSector, out sector);
_imageFormat.ReadSector(CurrentSector, out sector, out _);
using var stream = new MemoryStream(sector);
var buffer = new byte[BYTES_PER_LINE];