Redo Reformat and cleanup.

Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted.
This is now done with Rider-stable.
This commit is contained in:
2023-10-04 17:34:40 +01:00
parent bc8bf7a2dc
commit 7363a5d9c5
453 changed files with 7241 additions and 7126 deletions

View File

@@ -37,6 +37,9 @@ namespace Aaru.DiscImages;
[SuppressMessage("ReSharper", "UnusedMember.Local")]
public sealed partial class D88
{
const byte READ_ONLY = 0x10;
readonly byte[] _reservedEmpty = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
const byte READ_ONLY = 0x10;
readonly byte[] _reservedEmpty =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
}

View File

@@ -74,9 +74,7 @@ public sealed partial class D88
if(hdr.disk_size != stream.Length)
return false;
if(hdr.disk_type != DiskType.D2 &&
hdr.disk_type != DiskType.Dd2 &&
hdr.disk_type != DiskType.Hd2)
if(hdr.disk_type != DiskType.D2 && hdr.disk_type != DiskType.Dd2 && hdr.disk_type != DiskType.Hd2)
return false;
if(!hdr.reserved.SequenceEqual(_reservedEmpty))
@@ -89,8 +87,7 @@ public sealed partial class D88
if(t > 0)
counter++;
if(t < 0 ||
t > stream.Length)
if(t < 0 || t > stream.Length)
return false;
}

View File

@@ -77,9 +77,7 @@ public sealed partial class D88
if(hdr.disk_size != stream.Length)
return ErrorNumber.InvalidArgument;
if(hdr.disk_type != DiskType.D2 &&
hdr.disk_type != DiskType.Dd2 &&
hdr.disk_type != DiskType.Hd2)
if(hdr.disk_type != DiskType.D2 && hdr.disk_type != DiskType.Dd2 && hdr.disk_type != DiskType.Hd2)
return ErrorNumber.InvalidArgument;
if(!hdr.reserved.SequenceEqual(_reservedEmpty))
@@ -92,8 +90,7 @@ public sealed partial class D88
if(t > 0)
trkCounter++;
if(t < 0 ||
t > stream.Length)
if(t < 0 || t > stream.Length)
return ErrorNumber.InvalidArgument;
}
@@ -131,8 +128,7 @@ public sealed partial class D88
sechdr = Marshal.ByteArrayToStructureLittleEndian<SectorHeader>(hdrB);
if(sechdr.spt != spt ||
sechdr.n != bps)
if(sechdr.spt != spt || sechdr.n != bps)
{
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.Disk_tracks_are_not_same_size, sechdr.spt, spt,
sechdr.n, bps, i, 0);
@@ -152,8 +148,7 @@ public sealed partial class D88
sechdr = Marshal.ByteArrayToStructureLittleEndian<SectorHeader>(hdrB);
if(sechdr.spt == spt &&
sechdr.n == bps)
if(sechdr.spt == spt && sechdr.n == bps)
continue;
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.Disk_tracks_are_not_same_size, sechdr.spt, spt,
@@ -176,9 +171,7 @@ public sealed partial class D88
if(allEqual)
{
if(trkCounter == 154 &&
spt == 26 &&
bps == IBMSectorSizeCode.EighthKilo)
if(trkCounter == 154 && spt == 26 && bps == IBMSectorSizeCode.EighthKilo)
_imageInfo.MediaType = MediaType.NEC_8_SD;
else if(bps == IBMSectorSizeCode.QuarterKilo)
{
@@ -192,9 +185,7 @@ public sealed partial class D88
_ => _imageInfo.MediaType
};
}
else if(trkCounter == 154 &&
spt == 8 &&
bps == IBMSectorSizeCode.Kilo)
else if(trkCounter == 154 && spt == 8 && bps == IBMSectorSizeCode.Kilo)
_imageInfo.MediaType = MediaType.NEC_525_HD;
else if(bps == IBMSectorSizeCode.HalfKilo)
{