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:
@@ -197,9 +197,10 @@ public sealed partial class SuperCardPro
|
||||
|
||||
public bool SetGeometry(uint cylinders, uint heads, uint sectorsPerTrack) => true;
|
||||
|
||||
public bool WriteSectorTag(byte[] data, ulong sectorAddress, SectorTagType tag) => false;
|
||||
public bool WriteSectorTag(byte[] data, ulong sectorAddress, bool negative, SectorTagType tag) => false;
|
||||
|
||||
public bool WriteSectorsTag(byte[] data, ulong sectorAddress, uint length, SectorTagType tag) => false;
|
||||
public bool WriteSectorsTag(byte[] data, ulong sectorAddress, bool negative, uint length, SectorTagType tag) =>
|
||||
false;
|
||||
|
||||
public bool SetDumpHardware(List<DumpHardware> dumpHardware) => false;
|
||||
|
||||
@@ -207,14 +208,14 @@ public sealed partial class SuperCardPro
|
||||
|
||||
public bool WriteMediaTag(byte[] data, MediaTagType tag) => false;
|
||||
|
||||
public bool WriteSector(byte[] data, ulong sectorAddress, SectorStatus sectorStatus)
|
||||
public bool WriteSector(byte[] data, ulong sectorAddress, bool negative, SectorStatus sectorStatus)
|
||||
{
|
||||
ErrorMessage = Localization.Flux_decoding_is_not_yet_implemented;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool WriteSectors(byte[] data, ulong sectorAddress, uint length, SectorStatus[] sectorStatus)
|
||||
public bool WriteSectors(byte[] data, ulong sectorAddress, bool negative, uint length, SectorStatus[] sectorStatus)
|
||||
{
|
||||
ErrorMessage = Localization.Flux_decoding_is_not_yet_implemented;
|
||||
|
||||
@@ -222,7 +223,7 @@ public sealed partial class SuperCardPro
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool WriteSectorLong(byte[] data, ulong sectorAddress, SectorStatus sectorStatus)
|
||||
public bool WriteSectorLong(byte[] data, ulong sectorAddress, bool negative, SectorStatus sectorStatus)
|
||||
{
|
||||
ErrorMessage = Localization.Flux_decoding_is_not_yet_implemented;
|
||||
|
||||
@@ -230,7 +231,8 @@ public sealed partial class SuperCardPro
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool WriteSectorsLong(byte[] data, ulong sectorAddress, uint length, SectorStatus[] sectorStatus)
|
||||
public bool WriteSectorsLong(byte[] data, ulong sectorAddress, bool negative, uint length,
|
||||
SectorStatus[] sectorStatus)
|
||||
{
|
||||
ErrorMessage = Localization.Flux_decoding_is_not_yet_implemented;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user