Fix inconsistent naming.

This commit is contained in:
2022-11-13 20:38:15 +00:00
parent 6911b6e175
commit c68760ec49
8 changed files with 14 additions and 10 deletions

View File

@@ -163,11 +163,11 @@ public partial class Device
if(transferLength <= 1)
return ReadSingleBlock(out buffer, out response, lba, blockSize, byteAddressed, timeout, out duration);
if(!_readMultipleBlockCannotSetBlockCount)
if(!ReadMultipleBlockCannotSetBlockCount)
sense = ReadMultipleBlock(out buffer, out response, lba, blockSize, transferLength, byteAddressed, timeout,
out duration);
if(_readMultipleBlockCannotSetBlockCount)
if(ReadMultipleBlockCannotSetBlockCount)
return ReadMultipleUsingSingle(out buffer, out response, lba, blockSize, transferLength, byteAddressed,
timeout, out duration);
@@ -206,7 +206,7 @@ public partial class Device
return sense;
}
protected static bool _readMultipleBlockCannotSetBlockCount;
protected static bool ReadMultipleBlockCannotSetBlockCount;
/// <summary>Reads multiple blocks from a SecureDigital or MultiMediaCard device</summary>
/// <param name="buffer">Data buffer</param>

View File

@@ -96,7 +96,7 @@ partial class Device : Devices.Device
// Seems ioctl(2) does not allow the atomicity needed
if(dev.PlatformId == PlatformID.Linux)
_readMultipleBlockCannotSetBlockCount = true;
ReadMultipleBlockCannotSetBlockCount = true;
dev.Type = DeviceType.Unknown;
dev.ScsiType = PeripheralDeviceTypes.UnknownDevice;

View File

@@ -127,7 +127,7 @@ public sealed partial class Device : Devices.Device
}
if(dev._remote.ServerOperatingSystem == "Linux")
_readMultipleBlockCannotSetBlockCount = true;
ReadMultipleBlockCannotSetBlockCount = true;
dev.Type = DeviceType.Unknown;
dev.ScsiType = PeripheralDeviceTypes.UnknownDevice;

View File

@@ -89,6 +89,8 @@ public sealed partial class ISO9660
public string SymbolicLink;
public DateTime? Timestamp;
public ushort VolumeSequenceNumber;
// ReSharper disable once InconsistentNaming
public CdromXa? XA;
public byte XattrLength;

View File

@@ -526,11 +526,11 @@ public class SegaMegaDrive : IByteAddressableImage
SegaHeader header =
Marshal.ByteArrayToStructureBigEndian<SegaHeader>(_data, 0x100, Marshal.SizeOf<SegaHeader>());
bool extraRAM = header.ExtraRamPresent[0] == 0x52 && header.ExtraRamPresent[1] == 0x41;
bool extraRam = header.ExtraRamPresent[0] == 0x52 && header.ExtraRamPresent[1] == 0x41;
mappings = new LinearMemoryMap
{
Devices = extraRAM ? new LinearMemoryDevice[2] : new LinearMemoryDevice[1]
Devices = extraRam ? new LinearMemoryDevice[2] : new LinearMemoryDevice[1]
};
mappings.Devices[0].Type = LinearMemoryType.ROM;
@@ -547,7 +547,7 @@ public class SegaMegaDrive : IByteAddressableImage
Length = header.RomEnd - header.RomStart + 1
};
if(!extraRAM)
if(!extraRam)
return ErrorNumber.NoError;
mappings.Devices[1].PhysicalAddress = new LinearMemoryAddressing

View File

@@ -33,9 +33,11 @@
namespace Aaru.DiscImages;
using System;
using System.Diagnostics.CodeAnalysis;
public sealed partial class SuperCardPro
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum ScpDiskType : byte
{
Commodore64 = 0x00,