diff --git a/Aaru.CommonTypes.csproj b/Aaru.CommonTypes.csproj
index f803ae399..df7255b25 100644
--- a/Aaru.CommonTypes.csproj
+++ b/Aaru.CommonTypes.csproj
@@ -1,131 +1,131 @@
-
- 2.0
- {F2B84194-26EB-4227-B1C5-6602517E85AE}
- Library
- Aaru.CommonTypes
- Aaru.CommonTypes
- $(Version)
- false
- true
- 6.0.0-alpha8
- Claunia.com
- Copyright © 2011-2022 Natalia Portillo
- Aaru Data Preservation Suite
- Aaru.CommonTypes
- $(Version)
- net7.0
- 11
- Contains common types defined by the Aaru Data Preservation Suite.
- https://github.com/aaru-dps/
- MIT
- https://github.com/aaru-dps/Aaru.CommonTypes
- true
- en-US
- true
- true
- snupkg
- Natalia Portillo <claunia@claunia.com>
- true
- true
-
-
- CS1591;CS1574
-
-
-
-
-
-
- $(Version)+{chash:8}
- true
- true
-
-
-
- Metadata/cicm.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- LICENSE.MIT
-
-
-
-
-
-
+
+ 2.0
+ {F2B84194-26EB-4227-B1C5-6602517E85AE}
+ Library
+ Aaru.CommonTypes
+ Aaru.CommonTypes
+ $(Version)
+ false
+ true
+ 6.0.0-alpha8
+ Claunia.com
+ Copyright © 2011-2022 Natalia Portillo
+ Aaru Data Preservation Suite
+ Aaru.CommonTypes
+ $(Version)
+ net7.0
+ 11
+ Contains common types defined by the Aaru Data Preservation Suite.
+ https://github.com/aaru-dps/
+ MIT
+ https://github.com/aaru-dps/Aaru.CommonTypes
+ true
+ en-US
+ true
+ true
+ snupkg
+ Natalia Portillo <claunia@claunia.com>
+ true
+ true
+
+
+ CS1591;CS1574
+
+
+
+
+
+
+ $(Version)+{chash:8}
+ true
+ true
+
+
+
+ Metadata/cicm.cs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ LICENSE.MIT
+
+
+
+
+
+
diff --git a/Aaru.CommonTypes.csproj.DotSettings b/Aaru.CommonTypes.csproj.DotSettings
index b76a6bac6..a3c439af3 100644
--- a/Aaru.CommonTypes.csproj.DotSettings
+++ b/Aaru.CommonTypes.csproj.DotSettings
@@ -1,2 +1,5 @@
-
- True
\ No newline at end of file
+
+ True
\ No newline at end of file
diff --git a/Enums/ErrorNumber.cs b/Enums/ErrorNumber.cs
index 4f2f36206..a43770faf 100644
--- a/Enums/ErrorNumber.cs
+++ b/Enums/ErrorNumber.cs
@@ -36,10 +36,10 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Enums;
-
using System.Diagnostics.CodeAnalysis;
+namespace Aaru.CommonTypes.Enums;
+
/// Enumerates error codes. Negative for UNIX error number equivalents, positive for Aaru error numbers.
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "UnusedMember.Global"),
SuppressMessage("ReSharper", "IdentifierTypo")]
diff --git a/Enums/Images.cs b/Enums/Images.cs
index 2d1112138..8cc85b7c3 100644
--- a/Enums/Images.cs
+++ b/Enums/Images.cs
@@ -39,11 +39,11 @@
// ReSharper disable UnusedMember.Global
-namespace Aaru.CommonTypes.Enums;
-
using System;
using System.Diagnostics.CodeAnalysis;
+namespace Aaru.CommonTypes.Enums;
+
/// Track (as partitioning element) types.
public enum TrackType : byte
{
diff --git a/Enums/Nes.cs b/Enums/Nes.cs
index ef63af05f..1f22a8646 100644
--- a/Enums/Nes.cs
+++ b/Enums/Nes.cs
@@ -1,119 +1,61 @@
// ReSharper disable InconsistentNaming
+
namespace Aaru.CommonTypes.Enums;
public enum NesConsoleType : byte
{
- Nes = 0,
- Vs = 1,
- Playchoice = 2,
- Extended = 3
+ Nes = 0, Vs = 1, Playchoice = 2,
+ Extended = 3
}
public enum NesTimingMode : byte
{
- RP2C02 = 0,
- RP2C07 = 1,
- Multiple = 2,
+ RP2C02 = 0, RP2C07 = 1, Multiple = 2,
UMC6527P = 3
}
public enum NesVsPpuType : byte
{
- RP2C03B = 0,
- RP2C03G = 1,
- RP2C04_0001 = 2,
- RP2C04_0002 = 3,
- RP2C04_0003 = 4,
- RP2C04_0004 = 5,
- RC2C03B = 6,
- RC2C03C = 7,
- RC2C05_01 = 8,
- RC2C05_02 = 9,
- RC2C05_03 = 10,
- RC2C05_04 = 11,
+ RP2C03B = 0, RP2C03G = 1, RP2C04_0001 = 2,
+ RP2C04_0002 = 3, RP2C04_0003 = 4, RP2C04_0004 = 5,
+ RC2C03B = 6, RC2C03C = 7, RC2C05_01 = 8,
+ RC2C05_02 = 9, RC2C05_03 = 10, RC2C05_04 = 11,
RC2C05_05 = 12
}
public enum NesVsHardwareType : byte
{
- Normal = 0,
- RBI = 1,
- TKO = 2,
- SuperXevious = 3,
- IceClimber = 4,
- Dual = 5,
+ Normal = 0, RBI = 1, TKO = 2,
+ SuperXevious = 3, IceClimber = 4, Dual = 5,
RaidOnBungeling = 6
}
public enum NesExtendedConsoleType : byte
{
- Normal = 0,
- Vs = 1,
- Playchoice = 2,
- DecimalMode = 3,
- VT01_Monochrome = 4,
- VT01 = 5,
- VT02 = 6,
- VT03 = 7,
- VT09 = 8,
- VT32 = 9,
- VT369 = 10,
- UM6578 = 11
+ Normal = 0, Vs = 1, Playchoice = 2,
+ DecimalMode = 3, VT01_Monochrome = 4, VT01 = 5,
+ VT02 = 6, VT03 = 7, VT09 = 8,
+ VT32 = 9, VT369 = 10, UM6578 = 11
}
public enum NesDefaultExpansionDevice : byte
{
- Unspecified = 0,
- Controller = 1,
- FourScore = 2,
- FourPlayersAdapter = 3,
- Vs = 4,
- VsSystem = 5,
- VsPinball = 6,
- VsZapper = 7,
- Zapper = 8,
- TwoZappers = 9,
- HyperShotLightgun = 0xA,
- PowerPadSideA = 0xB,
- PowerPadSideB = 0xC,
- FamilyTrainerSideA = 0xD,
- FamilyTrainerSideB = 0xE,
- ArkanoidVaus = 0xF,
- ArkanoidVausFamicom = 0x10,
- TwoVausDataRecorder = 0x11,
- HyperShotController = 0x12,
- CoconutsPachinko = 0x13,
- ExcitingBoxing = 0x14,
- JissenMahjong = 0x15,
- PartyTap = 0x16,
- OekaKidsTablet = 0x17,
- SunsoftBarcodeBattler = 0x18,
- PianoKeyboard = 0x19,
- PokkunMoguraa = 0x1A,
- TopRider = 0x1B,
- DoubleFisted = 0x1C,
- Famicom3DSystem = 0x1D,
- DoremikkoKeyboard = 0x1E,
- GyroSet = 0x1F,
- DataRecorder = 0x20,
- TurboFile = 0x21,
- StorageBattleBox = 0x22,
- FamilyBASICKeyboardDataRecorder = 0x23,
- DongdaKeyboard = 0x24,
- BitCorpKeyboard = 0x25,
- SuborKeyboard = 0x26,
- SuborKeyboardMouse = 0x27,
- SuborKeyboardMouse24 = 0x28,
- SNESMouse = 0x29,
- Multicart = 0x2A,
- SNESControllers = 0x2B,
- RacerMateBicycle = 0x2C,
- UForce = 0x2D,
- StackUp = 0x2E,
- PatrolmanLightgun = 0x2F,
- C1CassetteInterface = 0x30,
- SwappedController = 0x31,
- SudokuPad = 0x32,
- ABLPinball = 0x33,
- GoldenNuggetCasino = 0x34
+ Unspecified = 0, Controller = 1, FourScore = 2,
+ FourPlayersAdapter = 3, Vs = 4, VsSystem = 5,
+ VsPinball = 6, VsZapper = 7, Zapper = 8,
+ TwoZappers = 9, HyperShotLightgun = 0xA, PowerPadSideA = 0xB,
+ PowerPadSideB = 0xC, FamilyTrainerSideA = 0xD, FamilyTrainerSideB = 0xE,
+ ArkanoidVaus = 0xF, ArkanoidVausFamicom = 0x10, TwoVausDataRecorder = 0x11,
+ HyperShotController = 0x12, CoconutsPachinko = 0x13, ExcitingBoxing = 0x14,
+ JissenMahjong = 0x15, PartyTap = 0x16, OekaKidsTablet = 0x17,
+ SunsoftBarcodeBattler = 0x18, PianoKeyboard = 0x19, PokkunMoguraa = 0x1A,
+ TopRider = 0x1B, DoubleFisted = 0x1C, Famicom3DSystem = 0x1D,
+ DoremikkoKeyboard = 0x1E, GyroSet = 0x1F, DataRecorder = 0x20,
+ TurboFile = 0x21, StorageBattleBox = 0x22, FamilyBASICKeyboardDataRecorder = 0x23,
+ DongdaKeyboard = 0x24, BitCorpKeyboard = 0x25, SuborKeyboard = 0x26,
+ SuborKeyboardMouse = 0x27, SuborKeyboardMouse24 = 0x28, SNESMouse = 0x29,
+ Multicart = 0x2A, SNESControllers = 0x2B, RacerMateBicycle = 0x2C,
+ UForce = 0x2D, StackUp = 0x2E, PatrolmanLightgun = 0x2F,
+ C1CassetteInterface = 0x30, SwappedController = 0x31, SudokuPad = 0x32,
+ ABLPinball = 0x33, GoldenNuggetCasino = 0x34
}
\ No newline at end of file
diff --git a/Extents/ExtentsByte.cs b/Extents/ExtentsByte.cs
index dba965adf..cb388b9d6 100644
--- a/Extents/ExtentsByte.cs
+++ b/Extents/ExtentsByte.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsByte
{
@@ -72,7 +72,7 @@ public class ExtentsByte
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsConverter.cs b/Extents/ExtentsConverter.cs
index 0c2be46ef..421a74925 100644
--- a/Extents/ExtentsConverter.cs
+++ b/Extents/ExtentsConverter.cs
@@ -36,12 +36,13 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
+using System.Collections.Generic;
using System.Linq;
using Schemas;
+namespace Aaru.CommonTypes.Extents;
+
/// Converts extents
public static class ExtentsConverter
{
@@ -54,7 +55,7 @@ public static class ExtentsConverter
return null;
Tuple[] tuples = extents.ToArray();
- var array = new ExtentType[tuples.Length];
+ ExtentType[] array = new ExtentType[tuples.Length];
for(ulong i = 0; i < (ulong)array.LongLength; i++)
array[i] = new ExtentType
@@ -74,7 +75,8 @@ public static class ExtentsConverter
if(extents == null)
return null;
- var tuples = extents.Select(extent => new Tuple(extent.Start, extent.End)).ToList();
+ List> tuples = extents.Select(extent => new Tuple(extent.Start, extent.End)).
+ ToList();
return new ExtentsULong(tuples);
}
diff --git a/Extents/ExtentsInt.cs b/Extents/ExtentsInt.cs
index 9b4ef21ff..0b5ed01c8 100644
--- a/Extents/ExtentsInt.cs
+++ b/Extents/ExtentsInt.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsInt
{
@@ -72,7 +72,7 @@ public class ExtentsInt
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsLong.cs b/Extents/ExtentsLong.cs
index 219a6d054..0b8be7298 100644
--- a/Extents/ExtentsLong.cs
+++ b/Extents/ExtentsLong.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsLong
{
@@ -72,7 +72,7 @@ public class ExtentsLong
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsSByte.cs b/Extents/ExtentsSByte.cs
index 75fb71a38..db5f81dd3 100644
--- a/Extents/ExtentsSByte.cs
+++ b/Extents/ExtentsSByte.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsSByte
{
@@ -72,7 +72,7 @@ public class ExtentsSByte
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsShort.cs b/Extents/ExtentsShort.cs
index a77b15031..23b1df582 100644
--- a/Extents/ExtentsShort.cs
+++ b/Extents/ExtentsShort.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsShort
{
@@ -72,7 +72,7 @@ public class ExtentsShort
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsUInt.cs b/Extents/ExtentsUInt.cs
index 3f9649d8e..0f8c80005 100644
--- a/Extents/ExtentsUInt.cs
+++ b/Extents/ExtentsUInt.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsUInt
{
@@ -72,7 +72,7 @@ public class ExtentsUInt
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsULong.cs b/Extents/ExtentsULong.cs
index d7cbc35bb..7ad783d3d 100644
--- a/Extents/ExtentsULong.cs
+++ b/Extents/ExtentsULong.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsULong
{
@@ -72,7 +72,7 @@ public class ExtentsULong
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Extents/ExtentsUShort.cs b/Extents/ExtentsUShort.cs
index 298f23ff0..f016a84cf 100644
--- a/Extents/ExtentsUShort.cs
+++ b/Extents/ExtentsUShort.cs
@@ -36,12 +36,12 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes.Extents;
-
using System;
using System.Collections.Generic;
using System.Linq;
+namespace Aaru.CommonTypes.Extents;
+
/// Implements extents for
public class ExtentsUShort
{
@@ -72,7 +72,7 @@ public class ExtentsUShort
Tuple removeTwo = null;
Tuple itemToAdd = null;
- for(var i = 0; i < _backend.Count; i++)
+ for(int i = 0; i < _backend.Count; i++)
{
// Already contained in an extent
if(item >= _backend[i].Item1 &&
diff --git a/Filters.cs b/Filters.cs
index ad7a15dce..9c64b0d4e 100644
--- a/Filters.cs
+++ b/Filters.cs
@@ -36,8 +36,6 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
-namespace Aaru.CommonTypes;
-
using System;
using System.Collections.Generic;
using System.IO;
@@ -47,6 +45,8 @@ using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Interfaces;
using Aaru.Console;
+namespace Aaru.CommonTypes;
+
/// Manages the known filters
public sealed class FiltersList
{
@@ -89,7 +89,8 @@ public sealed class FiltersList
if(!filter.Identify(path))
continue;
- var foundFilter = (IFilter)filter.GetType().GetConstructor(Type.EmptyTypes)?.Invoke(Array.Empty