diff --git a/BurnOutSharp/FileType/Executable.cs b/BurnOutSharp/FileType/Executable.cs index d1c7047d..198fc83f 100644 --- a/BurnOutSharp/FileType/Executable.cs +++ b/BurnOutSharp/FileType/Executable.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.FileType /// /// Cache for all IContentCheck types /// - private static IEnumerable contentCheckClasses = InitContentCheckClasses(); + private static readonly IEnumerable contentCheckClasses = InitContentCheckClasses(); /// public bool ShouldScan(byte[] magic) diff --git a/BurnOutSharp/PackerType/AdvancedInstaller.cs b/BurnOutSharp/PackerType/AdvancedInstaller.cs index 62de0ad0..f204d8f7 100644 --- a/BurnOutSharp/PackerType/AdvancedInstaller.cs +++ b/BurnOutSharp/PackerType/AdvancedInstaller.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Software\Caphyon\Advanced Installer new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/PackerType/Armadillo.cs b/BurnOutSharp/PackerType/Armadillo.cs index dd9f69b9..4b1014ab 100644 --- a/BurnOutSharp/PackerType/Armadillo.cs +++ b/BurnOutSharp/PackerType/Armadillo.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // .nicode + (char)0x00 new ContentMatchSet(new byte?[] { 0x2E, 0x6E, 0x69, 0x63, 0x6F, 0x64, 0x65, 0x00 }, "Armadillo"), diff --git a/BurnOutSharp/PackerType/CExe.cs b/BurnOutSharp/PackerType/CExe.cs index f64c1473..325c0808 100644 --- a/BurnOutSharp/PackerType/CExe.cs +++ b/BurnOutSharp/PackerType/CExe.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // %Wo�a6.�a6.�a6.�a6.�{6.�.).�f6.��).�`6.��0.�`6.� new ContentMatchSet( diff --git a/BurnOutSharp/PackerType/EXEStealth.cs b/BurnOutSharp/PackerType/EXEStealth.cs index 36294e6d..ac63fde4 100644 --- a/BurnOutSharp/PackerType/EXEStealth.cs +++ b/BurnOutSharp/PackerType/EXEStealth.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // ??[[__[[_ + (char)0x00 + {{ + (char)0x0 + (char)0x00 + {{ + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x0 + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x00 + ?;??;?? new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/PackerType/InnoSetup.cs b/BurnOutSharp/PackerType/InnoSetup.cs index 03a82206..493b06ff 100644 --- a/BurnOutSharp/PackerType/InnoSetup.cs +++ b/BurnOutSharp/PackerType/InnoSetup.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Inno new ContentMatchSet( diff --git a/BurnOutSharp/PackerType/NSIS.cs b/BurnOutSharp/PackerType/NSIS.cs index 475f67aa..25b85960 100644 --- a/BurnOutSharp/PackerType/NSIS.cs +++ b/BurnOutSharp/PackerType/NSIS.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Nullsoft Install System new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/PackerType/SetupFactory.cs b/BurnOutSharp/PackerType/SetupFactory.cs index ffbf6172..6297be0d 100644 --- a/BurnOutSharp/PackerType/SetupFactory.cs +++ b/BurnOutSharp/PackerType/SetupFactory.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // S.e.t.u.p. .F.a.c.t.o.r.y. new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/PackerType/UPX.cs b/BurnOutSharp/PackerType/UPX.cs index 31c4db92..b7c39549 100644 --- a/BurnOutSharp/PackerType/UPX.cs +++ b/BurnOutSharp/PackerType/UPX.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // UPX! new ContentMatchSet(new byte?[] { 0x55, 0x50, 0x58, 0x21 }, GetVersion, "UPX"), diff --git a/BurnOutSharp/PackerType/WinRARSFX.cs b/BurnOutSharp/PackerType/WinRARSFX.cs index 0cba62df..8d98b335 100644 --- a/BurnOutSharp/PackerType/WinRARSFX.cs +++ b/BurnOutSharp/PackerType/WinRARSFX.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Software\WinRAR SFX new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/PackerType/dotFuscator.cs b/BurnOutSharp/PackerType/dotFuscator.cs index e430bec7..b82c42cc 100644 --- a/BurnOutSharp/PackerType/dotFuscator.cs +++ b/BurnOutSharp/PackerType/dotFuscator.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.PackerType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // DotfuscatorAttribute new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/ActiveMARK.cs b/BurnOutSharp/ProtectionType/ActiveMARK.cs index 0274ac62..ae57d777 100644 --- a/BurnOutSharp/ProtectionType/ActiveMARK.cs +++ b/BurnOutSharp/ProtectionType/ActiveMARK.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // TMSAMVOF new ContentMatchSet(new byte?[] { 0x54, 0x4D, 0x53, 0x41, 0x4D, 0x56, 0x4F, 0x46 }, "ActiveMARK"), diff --git a/BurnOutSharp/ProtectionType/AlphaROM.cs b/BurnOutSharp/ProtectionType/AlphaROM.cs index 319fd4db..07e36807 100644 --- a/BurnOutSharp/ProtectionType/AlphaROM.cs +++ b/BurnOutSharp/ProtectionType/AlphaROM.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // SETTEC new ContentMatchSet(new byte?[] { 0x53, 0x45, 0x54, 0x54, 0x45, 0x43 }, "Alpha-ROM"), diff --git a/BurnOutSharp/ProtectionType/CDCheck.cs b/BurnOutSharp/ProtectionType/CDCheck.cs index 123b22de..ef5f524b 100644 --- a/BurnOutSharp/ProtectionType/CDCheck.cs +++ b/BurnOutSharp/ProtectionType/CDCheck.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // MGS CDCheck new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/CDCops.cs b/BurnOutSharp/ProtectionType/CDCops.cs index b1379c4f..e4f7abed 100644 --- a/BurnOutSharp/ProtectionType/CDCops.cs +++ b/BurnOutSharp/ProtectionType/CDCops.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // CD-Cops, ver. new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/CDLock.cs b/BurnOutSharp/ProtectionType/CDLock.cs index e838b2d1..ba0d7a77 100644 --- a/BurnOutSharp/ProtectionType/CDLock.cs +++ b/BurnOutSharp/ProtectionType/CDLock.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // 2 + (char)0xF2 + (char)0x02 + (char)0x82 + (char)0xC3 + (char)0xBC + (char)0x0B + $ + (char)0x99 + (char)0xAD + 'C + (char)0xE4 + (char)0x9D + st + (char)0x99 + (char)0xFA + 2$ + (char)0x9D + )4 + (char)0xFF + t new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/CDSHiELDSE.cs b/BurnOutSharp/ProtectionType/CDSHiELDSE.cs index a09d406d..49af5250 100644 --- a/BurnOutSharp/ProtectionType/CDSHiELDSE.cs +++ b/BurnOutSharp/ProtectionType/CDSHiELDSE.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // ~0017.tmp new ContentMatchSet(new byte?[] { 0x7E, 0x30, 0x30, 0x31, 0x37, 0x2E, 0x74, 0x6D, 0x70 }, "CDSHiELD SE"), diff --git a/BurnOutSharp/ProtectionType/CactusDataShield.cs b/BurnOutSharp/ProtectionType/CactusDataShield.cs index 6ab9a9c5..30af3b18 100644 --- a/BurnOutSharp/ProtectionType/CactusDataShield.cs +++ b/BurnOutSharp/ProtectionType/CactusDataShield.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // DATA.CDS new ContentMatchSet(new byte?[] { 0x44, 0x41, 0x54, 0x41, 0x2E, 0x43, 0x44, 0x53 }, "Cactus Data Shield 200"), diff --git a/BurnOutSharp/ProtectionType/CengaProtectDVD.cs b/BurnOutSharp/ProtectionType/CengaProtectDVD.cs index ec5dd5f5..9c3cd013 100644 --- a/BurnOutSharp/ProtectionType/CengaProtectDVD.cs +++ b/BurnOutSharp/ProtectionType/CengaProtectDVD.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // .cenega new ContentMatchSet(new byte?[] { 0x2E, 0x63, 0x65, 0x6E, 0x65, 0x67, 0x61 }, "Cenega ProtectDVD"), diff --git a/BurnOutSharp/ProtectionType/CodeLock.cs b/BurnOutSharp/ProtectionType/CodeLock.cs index 2b750b28..815da25c 100644 --- a/BurnOutSharp/ProtectionType/CodeLock.cs +++ b/BurnOutSharp/ProtectionType/CodeLock.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.ProtectionType /// Set of all ContentMatchSets for this protection /// /// TODO: Verify if these are OR or AND - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // icd1 + (char)0x00 new ContentMatchSet(new byte?[] { 0x69, 0x63, 0x64, 0x31, 0x00 }, "Code Lock"), diff --git a/BurnOutSharp/ProtectionType/CopyKiller.cs b/BurnOutSharp/ProtectionType/CopyKiller.cs index e9af76e8..e4bb6cc8 100644 --- a/BurnOutSharp/ProtectionType/CopyKiller.cs +++ b/BurnOutSharp/ProtectionType/CopyKiller.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Tom Commander new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/DVDCops.cs b/BurnOutSharp/ProtectionType/DVDCops.cs index d52dc60f..47e0eea9 100644 --- a/BurnOutSharp/ProtectionType/DVDCops.cs +++ b/BurnOutSharp/ProtectionType/DVDCops.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // DVD-Cops, ver. new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/ElectronicArts.cs b/BurnOutSharp/ProtectionType/ElectronicArts.cs index 52b05870..3960cf01 100644 --- a/BurnOutSharp/ProtectionType/ElectronicArts.cs +++ b/BurnOutSharp/ProtectionType/ElectronicArts.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // EASTL //new ContentMatchSet(new byte?[] { 0x45, 0x41, 0x53, 0x54, 0x4C }, "Cucko (EA Custom)"), diff --git a/BurnOutSharp/ProtectionType/GFWL.cs b/BurnOutSharp/ProtectionType/GFWL.cs index 83d4f1e3..0096f8c7 100644 --- a/BurnOutSharp/ProtectionType/GFWL.cs +++ b/BurnOutSharp/ProtectionType/GFWL.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // xlive.dll new ContentMatchSet(new byte?[] { 0x78, 0x6C, 0x69, 0x76, 0x65, 0x2E, 0x64, 0x6C, 0x6C }, "Games for Windows - Live"), diff --git a/BurnOutSharp/ProtectionType/ImpulseReactor.cs b/BurnOutSharp/ProtectionType/ImpulseReactor.cs index d8b9dd1c..aca6e5be 100644 --- a/BurnOutSharp/ProtectionType/ImpulseReactor.cs +++ b/BurnOutSharp/ProtectionType/ImpulseReactor.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { new ContentMatchSet(new List { diff --git a/BurnOutSharp/ProtectionType/Intenium.cs b/BurnOutSharp/ProtectionType/Intenium.cs index 1eaa4c6e..6adb4c40 100644 --- a/BurnOutSharp/ProtectionType/Intenium.cs +++ b/BurnOutSharp/ProtectionType/Intenium.cs @@ -24,7 +24,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Trial + (char)0x00 + P new ContentMatchSet(new byte?[] { 0x54, 0x72, 0x69, 0x61, 0x6C, 0x00, 0x50 }, "INTENIUM Trial & Buy Protection"), diff --git a/BurnOutSharp/ProtectionType/JoWooDXProt.cs b/BurnOutSharp/ProtectionType/JoWooDXProt.cs index f6ed5957..bb67b492 100644 --- a/BurnOutSharp/ProtectionType/JoWooDXProt.cs +++ b/BurnOutSharp/ProtectionType/JoWooDXProt.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // @HC09 new ContentMatchSet(new byte?[] { 0x40, 0x48, 0x43, 0x30, 0x39, 0x20, 0x20, 0x20, 0x20 }, "JoWooD X-Prot v2"), diff --git a/BurnOutSharp/ProtectionType/KeyLock.cs b/BurnOutSharp/ProtectionType/KeyLock.cs index 1ce8524d..a4a4e17b 100644 --- a/BurnOutSharp/ProtectionType/KeyLock.cs +++ b/BurnOutSharp/ProtectionType/KeyLock.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // KEY-LOCK COMMAND new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/LaserLock.cs b/BurnOutSharp/ProtectionType/LaserLock.cs index 9d181d9a..d5facccc 100644 --- a/BurnOutSharp/ProtectionType/LaserLock.cs +++ b/BurnOutSharp/ProtectionType/LaserLock.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // :\\LASERLOK\\LASERLOK.IN + (char)0x00 + C:\\NOMOUSE.SP new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/MediaMaxCD3.cs b/BurnOutSharp/ProtectionType/MediaMaxCD3.cs index 4cf24dba..f95c2ba1 100644 --- a/BurnOutSharp/ProtectionType/MediaMaxCD3.cs +++ b/BurnOutSharp/ProtectionType/MediaMaxCD3.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // Cd3Ctl new ContentMatchSet(new byte?[] { 0x43, 0x64, 0x33, 0x43, 0x74, 0x6C }, "MediaMax CD-3"), diff --git a/BurnOutSharp/ProtectionType/OnlineRegistration.cs b/BurnOutSharp/ProtectionType/OnlineRegistration.cs index 6c5fe7f6..46aae111 100644 --- a/BurnOutSharp/ProtectionType/OnlineRegistration.cs +++ b/BurnOutSharp/ProtectionType/OnlineRegistration.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // I + (char)0x00 + n + (char)0x00 + t + (char)0x00 + e + (char)0x00 + r + (char)0x00 + n + (char)0x00 + a + (char)0x00 + l + (char)0x00 + N + (char)0x00 + a + (char)0x00 + m + (char)0x00 + e + (char)0x00 + + (char)0x00 + + (char)0x00 + E + (char)0x00 + R + (char)0x00 + e + (char)0x00 + g + (char)0x00 new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/Origin.cs b/BurnOutSharp/ProtectionType/Origin.cs index 5534ee87..4a47996c 100644 --- a/BurnOutSharp/ProtectionType/Origin.cs +++ b/BurnOutSharp/ProtectionType/Origin.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // O + (char)0x00 + r + (char)0x00 + i + (char)0x00 + g + (char)0x00 + i + (char)0x00 + n + (char)0x00 + S + (char)0x00 + e + (char)0x00 + t + (char)0x00 + u + (char)0x00 + p + (char)0x00 + . + (char)0x00 + e + (char)0x00 + x + (char)0x00 + e + (char)0x00 new ContentMatchSet(new byte?[] { 0x4F, 0x00, 0x72, 0x00, 0x69, 0x00, 0x67, 0x00, 0x69, 0x00, 0x6E, 0x00, 0x53, 0x00, 0x65, 0x00, 0x74, 0x00, 0x75, 0x00, 0x70, 0x00, 0x2E, 0x00, 0x65, 0x00, 0x78, 0x00, 0x65, 0x00 }, "Origin"), diff --git a/BurnOutSharp/ProtectionType/PSXAntiModchip.cs b/BurnOutSharp/ProtectionType/PSXAntiModchip.cs index f346198f..57d6c7b7 100644 --- a/BurnOutSharp/ProtectionType/PSXAntiModchip.cs +++ b/BurnOutSharp/ProtectionType/PSXAntiModchip.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // SOFTWARE TERMINATED\nCONSOLE MAY HAVE BEEN MODIFIED\n CALL 1-888-780-7690 new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/ProtectDisc.cs b/BurnOutSharp/ProtectionType/ProtectDisc.cs index 35759956..b201a61d 100644 --- a/BurnOutSharp/ProtectionType/ProtectDisc.cs +++ b/BurnOutSharp/ProtectionType/ProtectDisc.cs @@ -13,7 +13,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // HúMETINF new ContentMatchSet(new byte?[] { 0x48, 0xFA, 0x4D, 0x45, 0x54, 0x49, 0x4E, 0x46 }, GetVersion76till10, "ProtectDisc"), diff --git a/BurnOutSharp/ProtectionType/RingPROTECH.cs b/BurnOutSharp/ProtectionType/RingPROTECH.cs index 7a3a8866..a7acf9e2 100644 --- a/BurnOutSharp/ProtectionType/RingPROTECH.cs +++ b/BurnOutSharp/ProtectionType/RingPROTECH.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.ProtectionType /// Set of all ContentMatchSets for this protection /// /// TODO: Investigate as this may be over-matching - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // (char)0x00 + Allocator + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x00 new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/SVKProtector.cs b/BurnOutSharp/ProtectionType/SVKProtector.cs index bf813b92..618cc6a5 100644 --- a/BurnOutSharp/ProtectionType/SVKProtector.cs +++ b/BurnOutSharp/ProtectionType/SVKProtector.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // ?SVKP + (char)0x00 + (char)0x00 new ContentMatchSet(new byte?[] { 0x3F, 0x53, 0x56, 0x4B, 0x50, 0x00, 0x00 }, "SVK Protector"), diff --git a/BurnOutSharp/ProtectionType/SafeDisc.cs b/BurnOutSharp/ProtectionType/SafeDisc.cs index 766454c5..33482d49 100644 --- a/BurnOutSharp/ProtectionType/SafeDisc.cs +++ b/BurnOutSharp/ProtectionType/SafeDisc.cs @@ -14,7 +14,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { new ContentMatchSet(new List { diff --git a/BurnOutSharp/ProtectionType/SafeLock.cs b/BurnOutSharp/ProtectionType/SafeLock.cs index 1b0e9945..e0cc0092 100644 --- a/BurnOutSharp/ProtectionType/SafeLock.cs +++ b/BurnOutSharp/ProtectionType/SafeLock.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // SafeLock new ContentMatchSet(new byte?[] { 0x53, 0x61, 0x66, 0x65, 0x4C, 0x6F, 0x63, 0x6B }, "SafeLock"), diff --git a/BurnOutSharp/ProtectionType/SecuROM.cs b/BurnOutSharp/ProtectionType/SecuROM.cs index 19848346..5073ff8e 100644 --- a/BurnOutSharp/ProtectionType/SecuROM.cs +++ b/BurnOutSharp/ProtectionType/SecuROM.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // AddD + (char)0x03 + (char)0x00 + (char)0x00 + (char)0x00) new ContentMatchSet(new byte?[] { 0x41, 0x64, 0x64, 0x44, 0x03, 0x00, 0x00, 0x00 }, GetV4Version, "SecuROM"), diff --git a/BurnOutSharp/ProtectionType/SmartE.cs b/BurnOutSharp/ProtectionType/SmartE.cs index ffbe7a78..a8974f8a 100644 --- a/BurnOutSharp/ProtectionType/SmartE.cs +++ b/BurnOutSharp/ProtectionType/SmartE.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // BITARTS new ContentMatchSet(new byte?[] { 0x42, 0x49, 0x54, 0x41, 0x52, 0x54, 0x53 }, "SmartE"), diff --git a/BurnOutSharp/ProtectionType/SolidShield.cs b/BurnOutSharp/ProtectionType/SolidShield.cs index 2eaeeb02..3767f366 100644 --- a/BurnOutSharp/ProtectionType/SolidShield.cs +++ b/BurnOutSharp/ProtectionType/SolidShield.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // D + (char)0x00 + V + (char)0x00 + M + (char)0x00 + + (char)0x00 + L + (char)0x00 + i + (char)0x00 + b + (char)0x00 + r + (char)0x00 + a + (char)0x00 + r + (char)0x00 + y + (char)0x00 new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/StarForce.cs b/BurnOutSharp/ProtectionType/StarForce.cs index 874ffe0f..fab1d404 100644 --- a/BurnOutSharp/ProtectionType/StarForce.cs +++ b/BurnOutSharp/ProtectionType/StarForce.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { new ContentMatchSet(new List { diff --git a/BurnOutSharp/ProtectionType/Sysiphus.cs b/BurnOutSharp/ProtectionType/Sysiphus.cs index cd379099..6a51bec4 100644 --- a/BurnOutSharp/ProtectionType/Sysiphus.cs +++ b/BurnOutSharp/ProtectionType/Sysiphus.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // V SUHPISYSDVD new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/Tages.cs b/BurnOutSharp/ProtectionType/Tages.cs index 36f2996e..ad080eee 100644 --- a/BurnOutSharp/ProtectionType/Tages.cs +++ b/BurnOutSharp/ProtectionType/Tages.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // protected-tages-runtime.exe new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/ThreePLock.cs b/BurnOutSharp/ProtectionType/ThreePLock.cs index 3a18bd8c..e34e2151 100644 --- a/BurnOutSharp/ProtectionType/ThreePLock.cs +++ b/BurnOutSharp/ProtectionType/ThreePLock.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { new ContentMatchSet(new List { diff --git a/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs b/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs index 6a3b34dc..844daf99 100644 --- a/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs +++ b/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // 3 + (char)0x00 + 1 + 2 + (char)0x00 + 1 + (char)0x00 + S + (char)0x00 + t + (char)0x00 + u + (char)0x00 + d + (char)0x00 + i + (char)0x00 + o + (char)0x00 + s + (char)0x00 + + (char)0x00 + A + (char)0x00 + c + (char)0x00 + t + (char)0x00 + i + (char)0x00 + v + (char)0x00 + a + (char)0x00 + t + (char)0x00 + i + (char)0x00 + o + (char)0x00 + n + (char)0x00 new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs b/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs index 375f907a..5535da85 100644 --- a/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs +++ b/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs @@ -13,7 +13,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // VOB ProtectCD new ContentMatchSet(new byte?[] diff --git a/BurnOutSharp/ProtectionType/WTMCDProtect.cs b/BurnOutSharp/ProtectionType/WTMCDProtect.cs index f9fa01a5..d750e3b4 100644 --- a/BurnOutSharp/ProtectionType/WTMCDProtect.cs +++ b/BurnOutSharp/ProtectionType/WTMCDProtect.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // WTM76545 new ContentMatchSet(new byte?[] { 0x57, 0x54, 0x4D, 0x37, 0x36, 0x35, 0x34, 0x35 }, "WTM CD Protect"), diff --git a/BurnOutSharp/ProtectionType/XCP.cs b/BurnOutSharp/ProtectionType/XCP.cs index 85dd885d..eadfe4a7 100644 --- a/BurnOutSharp/ProtectionType/XCP.cs +++ b/BurnOutSharp/ProtectionType/XCP.cs @@ -13,7 +13,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // XCP.DAT new ContentMatchSet(new byte?[] { 0x58, 0x43, 0x50, 0x2E, 0x44, 0x41, 0x54 }, "XCP"), diff --git a/BurnOutSharp/ProtectionType/XtremeProtector.cs b/BurnOutSharp/ProtectionType/XtremeProtector.cs index 9976ed1e..0793eb04 100644 --- a/BurnOutSharp/ProtectionType/XtremeProtector.cs +++ b/BurnOutSharp/ProtectionType/XtremeProtector.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.ProtectionType /// /// Set of all ContentMatchSets for this protection /// - private static List contentMatchers = new List + private static readonly List contentMatchers = new List { // XPROT new ContentMatchSet(new byte?[] { 0x58, 0x50, 0x52, 0x4F, 0x54, 0x20, 0x20, 0x20 }, "Xtreme-Protector"), diff --git a/BurnOutSharp/Scanner.cs b/BurnOutSharp/Scanner.cs index a8ae5996..7a980fea 100644 --- a/BurnOutSharp/Scanner.cs +++ b/BurnOutSharp/Scanner.cs @@ -37,7 +37,7 @@ namespace BurnOutSharp /// /// Cache for all IPathCheck types /// - private static IEnumerable pathCheckClasses = InitPathCheckClasses(); + private static readonly IEnumerable pathCheckClasses = InitPathCheckClasses(); /// /// Constructor