mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix inconsistent naming.
This commit is contained in:
Submodule Aaru.CommonTypes updated: ee657ecfa5...6d8fcb4d8b
Submodule Aaru.Decoders updated: c1f24c46a9...e727683929
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user