General cleanup and refactor.

This commit is contained in:
2022-03-07 07:36:44 +00:00
parent bc6e432565
commit 762e3eb6d2
1321 changed files with 44657 additions and 45479 deletions

View File

@@ -30,13 +30,15 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
using System;
using Aaru.Console;
// ReSharper disable InconsistentNaming
namespace Aaru.Devices;
using System;
using Aaru.Console;
public sealed partial class Device
{
/// <summary>Reads the data TOC from an MD-DATA</summary>
@@ -49,7 +51,7 @@ public sealed partial class Device
{
ushort transferLength = 2336;
senseBuffer = new byte[64];
byte[] cdb = new byte[10];
var cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscReadDTOC;
@@ -80,7 +82,7 @@ public sealed partial class Device
{
ushort transferLength = 2336;
senseBuffer = new byte[64];
byte[] cdb = new byte[10];
var cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscReadUTOC;
@@ -113,7 +115,7 @@ public sealed partial class Device
{
ushort transferLength = 4;
senseBuffer = new byte[64];
byte[] cdb = new byte[10];
var cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscD5;
@@ -141,7 +143,7 @@ public sealed partial class Device
public bool MiniDiscStopPlaying(out byte[] buffer, out byte[] senseBuffer, uint timeout, out double duration)
{
senseBuffer = new byte[64];
byte[] cdb = new byte[10];
var cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscStopPlay;
@@ -167,7 +169,7 @@ public sealed partial class Device
{
ushort transferLength = 4;
senseBuffer = new byte[64];
byte[] cdb = new byte[10];
var cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscReadPosition;
@@ -196,7 +198,7 @@ public sealed partial class Device
{
ushort transferLength = 8;
senseBuffer = new byte[64];
byte[] cdb = new byte[10];
var cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscGetType;