mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
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:
@@ -430,9 +430,7 @@ public sealed class ErrorLog
|
||||
_logSw.WriteLine(Localization.Core.SCSI_reading_LBA_0_operating_system_error_1, block, errno);
|
||||
_logSw.Flush();
|
||||
|
||||
if(senseBuffer is null ||
|
||||
senseBuffer.Length == 0 ||
|
||||
senseBuffer.All(s => s == 0))
|
||||
if(senseBuffer is null || senseBuffer.Length == 0 || senseBuffer.All(s => s == 0))
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -517,22 +515,16 @@ public sealed class ErrorLog
|
||||
{
|
||||
if(osError)
|
||||
{
|
||||
_logSw.WriteLine(
|
||||
byteAddressed
|
||||
? Localization.Core.SD_MMC_reading_LBA_0_byte_addressed_operating_system_error_1
|
||||
: Localization.Core.SD_MMC_reading_LBA_0_block_addressed_operating_system_error_1,
|
||||
block, errno);
|
||||
_logSw.WriteLine(byteAddressed ? Localization.Core.SD_MMC_reading_LBA_0_byte_addressed_operating_system_error_1 : Localization.Core.SD_MMC_reading_LBA_0_block_addressed_operating_system_error_1,
|
||||
block, errno);
|
||||
|
||||
_logSw.Flush();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
_logSw.WriteLine(
|
||||
byteAddressed
|
||||
? Localization.Core.SD_MMC_reading_LBA_0_byte_addressed_error_1
|
||||
: Localization.Core.SD_MMC_reading_LBA_0_block_addressed_error_1,
|
||||
block, string.Join(" - ", response.Select(r => $"0x{r:X8}")));
|
||||
_logSw.WriteLine(byteAddressed ? Localization.Core.SD_MMC_reading_LBA_0_byte_addressed_error_1 : Localization.Core.SD_MMC_reading_LBA_0_block_addressed_error_1,
|
||||
block, string.Join(" - ", response.Select(r => $"0x{r:X8}")));
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -249,8 +249,7 @@ sealed class IbgLog
|
||||
if(_ibgSampleRate < 100)
|
||||
return;
|
||||
|
||||
if(_ibgIntSpeed > 0 &&
|
||||
!_ibgStartSet)
|
||||
if(_ibgIntSpeed > 0 && !_ibgStartSet)
|
||||
{
|
||||
_ibgStartSpeed = _ibgIntSpeed / _ibgSnaps / _ibgDivider;
|
||||
_ibgStartSet = true;
|
||||
|
||||
@@ -59,8 +59,7 @@ sealed class MhddLog
|
||||
internal MhddLog(string outputFile, Device dev, ulong blocks, ulong blockSize, ulong blocksToRead, bool @private,
|
||||
uint mediaGraphDimensions = 0)
|
||||
{
|
||||
if(dev == null ||
|
||||
string.IsNullOrEmpty(outputFile))
|
||||
if(dev == null || string.IsNullOrEmpty(outputFile))
|
||||
return;
|
||||
|
||||
if(mediaGraphDimensions > 0)
|
||||
@@ -117,10 +116,16 @@ sealed class MhddLog
|
||||
byte[] scanBlockSizeBytes = Encoding.ASCII.GetBytes(scanBlockSize);
|
||||
byte[] verBytes = Encoding.ASCII.GetBytes(MHDD_VER);
|
||||
|
||||
var pointer = (uint)(deviceBytes.Length + modeBytes.Length + fwBytes.Length + snBytes.Length +
|
||||
sectorsBytes.Length + sectorSizeBytes.Length + scanBlockSizeBytes.Length +
|
||||
verBytes.Length + 2 * 9 + // New lines
|
||||
4); // Pointer
|
||||
var pointer = (uint)(deviceBytes.Length +
|
||||
modeBytes.Length +
|
||||
fwBytes.Length +
|
||||
snBytes.Length +
|
||||
sectorsBytes.Length +
|
||||
sectorSizeBytes.Length +
|
||||
scanBlockSizeBytes.Length +
|
||||
verBytes.Length +
|
||||
2 * 9 + // New lines
|
||||
4); // Pointer
|
||||
|
||||
var newLine = new byte[2];
|
||||
newLine[0] = 0x0D;
|
||||
|
||||
@@ -188,8 +188,7 @@ public class SubchannelLog
|
||||
|
||||
for(var i = 0; i < 12; i++)
|
||||
{
|
||||
if(p[i] == 0 ||
|
||||
p[i] == 0xFF)
|
||||
if(p[i] == 0 || p[i] == 0xFF)
|
||||
continue;
|
||||
|
||||
corruptedPause = true;
|
||||
|
||||
Reference in New Issue
Block a user