diff --git a/BinaryObjectScanner/Interfaces/IPathCheck.cs b/BinaryObjectScanner/Interfaces/IPathCheck.cs index 6b7999bf..e54d6d6e 100644 --- a/BinaryObjectScanner/Interfaces/IPathCheck.cs +++ b/BinaryObjectScanner/Interfaces/IPathCheck.cs @@ -14,9 +14,9 @@ namespace BinaryObjectScanner.Interfaces /// Check a file path for protections based on path name /// /// Path to check for protection indicators - /// Enumerable of strings representing files in a directory + /// List of strings representing files in a directory /// This can do some limited content checking as well, but it's suggested to use a content check instead, if possible - List CheckDirectoryPath(string path, IEnumerable? files); + List CheckDirectoryPath(string path, List? files); /// /// Check a file path for protections based on path name diff --git a/BinaryObjectScanner/Protection/AegiSoft.cs b/BinaryObjectScanner/Protection/AegiSoft.cs index d012ca71..5af55f39 100644 --- a/BinaryObjectScanner/Protection/AegiSoft.cs +++ b/BinaryObjectScanner/Protection/AegiSoft.cs @@ -68,7 +68,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/AlphaDVD.cs b/BinaryObjectScanner/Protection/AlphaDVD.cs index f10e929e..bded0e7d 100644 --- a/BinaryObjectScanner/Protection/AlphaDVD.cs +++ b/BinaryObjectScanner/Protection/AlphaDVD.cs @@ -16,7 +16,7 @@ namespace BinaryObjectScanner.Protection public class AlphaDVD : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Bitpool.cs b/BinaryObjectScanner/Protection/Bitpool.cs index 5f01cd6f..528fa633 100644 --- a/BinaryObjectScanner/Protection/Bitpool.cs +++ b/BinaryObjectScanner/Protection/Bitpool.cs @@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Protection public class Bitpool : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ByteShield.cs b/BinaryObjectScanner/Protection/ByteShield.cs index ce87df20..77ee0554 100644 --- a/BinaryObjectScanner/Protection/ByteShield.cs +++ b/BinaryObjectScanner/Protection/ByteShield.cs @@ -130,7 +130,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // TODO: Investigate reference to "bbz650.tmp" in "Byteshield.dll" (Redump entry 6236) // Files with the ".bbz" extension are associated with ByteShield, but the extenstion is known to be used in other places as well. diff --git a/BinaryObjectScanner/Protection/CDDVDCops.cs b/BinaryObjectScanner/Protection/CDDVDCops.cs index 602bf886..ac2b3227 100644 --- a/BinaryObjectScanner/Protection/CDDVDCops.cs +++ b/BinaryObjectScanner/Protection/CDDVDCops.cs @@ -182,7 +182,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // TODO: Original had "CDCOPS.DLL" required and all the rest in a combined OR var matchers = new List diff --git a/BinaryObjectScanner/Protection/CDGuard.cs b/BinaryObjectScanner/Protection/CDGuard.cs index 3bcbe398..9265b2d0 100644 --- a/BinaryObjectScanner/Protection/CDGuard.cs +++ b/BinaryObjectScanner/Protection/CDGuard.cs @@ -54,7 +54,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CDLock.cs b/BinaryObjectScanner/Protection/CDLock.cs index bfbdbad2..1a7dd207 100644 --- a/BinaryObjectScanner/Protection/CDLock.cs +++ b/BinaryObjectScanner/Protection/CDLock.cs @@ -62,7 +62,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CDProtector.cs b/BinaryObjectScanner/Protection/CDProtector.cs index 84e641b3..1647d076 100644 --- a/BinaryObjectScanner/Protection/CDProtector.cs +++ b/BinaryObjectScanner/Protection/CDProtector.cs @@ -17,7 +17,7 @@ namespace BinaryObjectScanner.Protection public class CDProtector : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CDX.cs b/BinaryObjectScanner/Protection/CDX.cs index 69399d5a..27337af0 100644 --- a/BinaryObjectScanner/Protection/CDX.cs +++ b/BinaryObjectScanner/Protection/CDX.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Protection public class CDX : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // TODO: Verify if these are OR or AND var matchers = new List diff --git a/BinaryObjectScanner/Protection/CenegaProtectDVD.cs b/BinaryObjectScanner/Protection/CenegaProtectDVD.cs index 19ee6038..417e99d4 100644 --- a/BinaryObjectScanner/Protection/CenegaProtectDVD.cs +++ b/BinaryObjectScanner/Protection/CenegaProtectDVD.cs @@ -53,7 +53,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Channelware.cs b/BinaryObjectScanner/Protection/Channelware.cs index b0589c63..29f911e6 100644 --- a/BinaryObjectScanner/Protection/Channelware.cs +++ b/BinaryObjectScanner/Protection/Channelware.cs @@ -61,7 +61,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs b/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs index 13663d62..acdcdf4e 100644 --- a/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs +++ b/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs @@ -53,7 +53,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CopyKiller.cs b/BinaryObjectScanner/Protection/CopyKiller.cs index 2c2311da..1a5ec663 100644 --- a/BinaryObjectScanner/Protection/CopyKiller.cs +++ b/BinaryObjectScanner/Protection/CopyKiller.cs @@ -36,7 +36,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // Previous versions of BOS noted to look at ".PFF" files as possible indicators of CopyKiller, but those files seem unrelated. // TODO: Figure out why this doesn't work. diff --git a/BinaryObjectScanner/Protection/CopyX.cs b/BinaryObjectScanner/Protection/CopyX.cs index 2d973e26..95d4358c 100644 --- a/BinaryObjectScanner/Protection/CopyX.cs +++ b/BinaryObjectScanner/Protection/CopyX.cs @@ -93,7 +93,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/CrypKey.cs b/BinaryObjectScanner/Protection/CrypKey.cs index 25d7c396..84596854 100644 --- a/BinaryObjectScanner/Protection/CrypKey.cs +++ b/BinaryObjectScanner/Protection/CrypKey.cs @@ -73,7 +73,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DVDCrypt.cs b/BinaryObjectScanner/Protection/DVDCrypt.cs index 0d44ea8c..a2a7d701 100644 --- a/BinaryObjectScanner/Protection/DVDCrypt.cs +++ b/BinaryObjectScanner/Protection/DVDCrypt.cs @@ -8,7 +8,7 @@ namespace BinaryObjectScanner.Protection public class DVDCrypt : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs b/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs index 4dfdb75c..14c618ce 100644 --- a/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs +++ b/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs @@ -9,7 +9,7 @@ namespace BinaryObjectScanner.Protection public class DVDMoviePROTECT : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/Denuvo.cs b/BinaryObjectScanner/Protection/Denuvo.cs index be1efb48..241ede08 100644 --- a/BinaryObjectScanner/Protection/Denuvo.cs +++ b/BinaryObjectScanner/Protection/Denuvo.cs @@ -263,7 +263,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DigiGuard.cs b/BinaryObjectScanner/Protection/DigiGuard.cs index 19975ef1..dcecd9a2 100644 --- a/BinaryObjectScanner/Protection/DigiGuard.cs +++ b/BinaryObjectScanner/Protection/DigiGuard.cs @@ -52,7 +52,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DinamicMultimedia.cs b/BinaryObjectScanner/Protection/DinamicMultimedia.cs index 0726633a..41500337 100644 --- a/BinaryObjectScanner/Protection/DinamicMultimedia.cs +++ b/BinaryObjectScanner/Protection/DinamicMultimedia.cs @@ -22,7 +22,7 @@ namespace BinaryObjectScanner.Protection // https://www.gamecopyworld.com/games/pc_pc_calcio_2000.shtml // https://www.gamecopyworld.com/games/pc_pc_futbol_2000.shtml - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DiscGuard.cs b/BinaryObjectScanner/Protection/DiscGuard.cs index e995db3f..0130e909 100644 --- a/BinaryObjectScanner/Protection/DiscGuard.cs +++ b/BinaryObjectScanner/Protection/DiscGuard.cs @@ -138,7 +138,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/EAAntiCheat.cs b/BinaryObjectScanner/Protection/EAAntiCheat.cs index 822531ca..1120c56c 100644 --- a/BinaryObjectScanner/Protection/EAAntiCheat.cs +++ b/BinaryObjectScanner/Protection/EAAntiCheat.cs @@ -46,7 +46,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/EasyAntiCheat.cs b/BinaryObjectScanner/Protection/EasyAntiCheat.cs index 63596e12..2d6514d4 100644 --- a/BinaryObjectScanner/Protection/EasyAntiCheat.cs +++ b/BinaryObjectScanner/Protection/EasyAntiCheat.cs @@ -80,7 +80,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // TODO: Search for the presence of the folder "EasyAntiCheat" specifically, which is present in every checked version so far. var matchers = new List diff --git a/BinaryObjectScanner/Protection/Engine32.cs b/BinaryObjectScanner/Protection/Engine32.cs index 0a44f189..8396d9fd 100644 --- a/BinaryObjectScanner/Protection/Engine32.cs +++ b/BinaryObjectScanner/Protection/Engine32.cs @@ -50,7 +50,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/FreeLock.cs b/BinaryObjectScanner/Protection/FreeLock.cs index e202a618..1adc6e83 100644 --- a/BinaryObjectScanner/Protection/FreeLock.cs +++ b/BinaryObjectScanner/Protection/FreeLock.cs @@ -15,7 +15,7 @@ namespace BinaryObjectScanner.Protection // TODO: Add an MS-DOS executable check for "FREELOCK.EXE". /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/GFWL.cs b/BinaryObjectScanner/Protection/GFWL.cs index 5590ea3b..cb970148 100644 --- a/BinaryObjectScanner/Protection/GFWL.cs +++ b/BinaryObjectScanner/Protection/GFWL.cs @@ -34,7 +34,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Gefest.cs b/BinaryObjectScanner/Protection/Gefest.cs index 8ea84420..04c4ebef 100644 --- a/BinaryObjectScanner/Protection/Gefest.cs +++ b/BinaryObjectScanner/Protection/Gefest.cs @@ -38,7 +38,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/HexaLock.cs b/BinaryObjectScanner/Protection/HexaLock.cs index c9aafea1..08e9d36a 100644 --- a/BinaryObjectScanner/Protection/HexaLock.cs +++ b/BinaryObjectScanner/Protection/HexaLock.cs @@ -67,7 +67,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ImpulseReactor.cs b/BinaryObjectScanner/Protection/ImpulseReactor.cs index 4b6f19f0..3f2c9df1 100644 --- a/BinaryObjectScanner/Protection/ImpulseReactor.cs +++ b/BinaryObjectScanner/Protection/ImpulseReactor.cs @@ -54,7 +54,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/IndyVCD.cs b/BinaryObjectScanner/Protection/IndyVCD.cs index ff01bc2a..dca172d0 100644 --- a/BinaryObjectScanner/Protection/IndyVCD.cs +++ b/BinaryObjectScanner/Protection/IndyVCD.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Protection public class IndyVCD : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // TODO: Verify if these are OR or AND var matchers = new List diff --git a/BinaryObjectScanner/Protection/KalypsoLauncher.cs b/BinaryObjectScanner/Protection/KalypsoLauncher.cs index 454ce4d5..d68368b3 100644 --- a/BinaryObjectScanner/Protection/KalypsoLauncher.cs +++ b/BinaryObjectScanner/Protection/KalypsoLauncher.cs @@ -56,7 +56,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/LabelGate.cs b/BinaryObjectScanner/Protection/LabelGate.cs index 19783973..ab4078ec 100644 --- a/BinaryObjectScanner/Protection/LabelGate.cs +++ b/BinaryObjectScanner/Protection/LabelGate.cs @@ -48,7 +48,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/LaserLok.cs b/BinaryObjectScanner/Protection/LaserLok.cs index 9f7f2e83..6e07a52e 100644 --- a/BinaryObjectScanner/Protection/LaserLok.cs +++ b/BinaryObjectScanner/Protection/LaserLok.cs @@ -118,7 +118,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Macrovision.cs b/BinaryObjectScanner/Protection/Macrovision.cs index 1dac1112..f05131e2 100644 --- a/BinaryObjectScanner/Protection/Macrovision.cs +++ b/BinaryObjectScanner/Protection/Macrovision.cs @@ -165,7 +165,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var results = new List(); diff --git a/BinaryObjectScanner/Protection/MediaCloQ.cs b/BinaryObjectScanner/Protection/MediaCloQ.cs index 4d54be01..6926c089 100644 --- a/BinaryObjectScanner/Protection/MediaCloQ.cs +++ b/BinaryObjectScanner/Protection/MediaCloQ.cs @@ -37,7 +37,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/MediaMax.cs b/BinaryObjectScanner/Protection/MediaMax.cs index e2f85775..9f333e6e 100644 --- a/BinaryObjectScanner/Protection/MediaMax.cs +++ b/BinaryObjectScanner/Protection/MediaMax.cs @@ -63,7 +63,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/NEACProtect.cs b/BinaryObjectScanner/Protection/NEACProtect.cs index 8924d83d..df343229 100644 --- a/BinaryObjectScanner/Protection/NEACProtect.cs +++ b/BinaryObjectScanner/Protection/NEACProtect.cs @@ -50,7 +50,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/NProtect.cs b/BinaryObjectScanner/Protection/NProtect.cs index 3e42f470..cef2f7e6 100644 --- a/BinaryObjectScanner/Protection/NProtect.cs +++ b/BinaryObjectScanner/Protection/NProtect.cs @@ -80,7 +80,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/OpenMG.cs b/BinaryObjectScanner/Protection/OpenMG.cs index 2f4a8ccd..b5061cd7 100644 --- a/BinaryObjectScanner/Protection/OpenMG.cs +++ b/BinaryObjectScanner/Protection/OpenMG.cs @@ -64,7 +64,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Origin.cs b/BinaryObjectScanner/Protection/Origin.cs index 2b2dff02..253fbb27 100644 --- a/BinaryObjectScanner/Protection/Origin.cs +++ b/BinaryObjectScanner/Protection/Origin.cs @@ -29,7 +29,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/PlayJ.cs b/BinaryObjectScanner/Protection/PlayJ.cs index f0f1ed57..13ed4e4b 100644 --- a/BinaryObjectScanner/Protection/PlayJ.cs +++ b/BinaryObjectScanner/Protection/PlayJ.cs @@ -40,7 +40,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ProtectDVDVideo.cs b/BinaryObjectScanner/Protection/ProtectDVDVideo.cs index f4603acd..c8813fb4 100644 --- a/BinaryObjectScanner/Protection/ProtectDVDVideo.cs +++ b/BinaryObjectScanner/Protection/ProtectDVDVideo.cs @@ -9,7 +9,7 @@ namespace BinaryObjectScanner.Protection public class ProtectDVDVideo : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/ProtectDisc.cs b/BinaryObjectScanner/Protection/ProtectDisc.cs index ed96cae3..c5e2f701 100644 --- a/BinaryObjectScanner/Protection/ProtectDisc.cs +++ b/BinaryObjectScanner/Protection/ProtectDisc.cs @@ -97,7 +97,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/RainbowSentinel.cs b/BinaryObjectScanner/Protection/RainbowSentinel.cs index d9873034..8470c23f 100644 --- a/BinaryObjectScanner/Protection/RainbowSentinel.cs +++ b/BinaryObjectScanner/Protection/RainbowSentinel.cs @@ -287,7 +287,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/RealArcade.cs b/BinaryObjectScanner/Protection/RealArcade.cs index 3f40c238..d4ec8aa3 100644 --- a/BinaryObjectScanner/Protection/RealArcade.cs +++ b/BinaryObjectScanner/Protection/RealArcade.cs @@ -41,7 +41,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/RingPROTECH.cs b/BinaryObjectScanner/Protection/RingPROTECH.cs index cd3ee753..184a691a 100644 --- a/BinaryObjectScanner/Protection/RingPROTECH.cs +++ b/BinaryObjectScanner/Protection/RingPROTECH.cs @@ -35,7 +35,7 @@ namespace BinaryObjectScanner.Protection // TODO: Confirm if these checks are only for ProRing or if they are also for older Ring PROTECH /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Roxxe.cs b/BinaryObjectScanner/Protection/Roxxe.cs index a0475e95..de82921c 100644 --- a/BinaryObjectScanner/Protection/Roxxe.cs +++ b/BinaryObjectScanner/Protection/Roxxe.cs @@ -61,7 +61,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SVKP.cs b/BinaryObjectScanner/Protection/SVKP.cs index 913faa6f..77740f00 100644 --- a/BinaryObjectScanner/Protection/SVKP.cs +++ b/BinaryObjectScanner/Protection/SVKP.cs @@ -122,7 +122,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SafeLock.cs b/BinaryObjectScanner/Protection/SafeLock.cs index 3968779a..c41d37ce 100644 --- a/BinaryObjectScanner/Protection/SafeLock.cs +++ b/BinaryObjectScanner/Protection/SafeLock.cs @@ -20,7 +20,7 @@ namespace BinaryObjectScanner.Protection public class SafeLock : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { // Technically all need to exist but some might be renamed var matchers = new List diff --git a/BinaryObjectScanner/Protection/SecuROM.cs b/BinaryObjectScanner/Protection/SecuROM.cs index 2f3c2238..1d822155 100644 --- a/BinaryObjectScanner/Protection/SecuROM.cs +++ b/BinaryObjectScanner/Protection/SecuROM.cs @@ -117,7 +117,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SmartE.cs b/BinaryObjectScanner/Protection/SmartE.cs index d36b8fb8..e7851422 100644 --- a/BinaryObjectScanner/Protection/SmartE.cs +++ b/BinaryObjectScanner/Protection/SmartE.cs @@ -28,7 +28,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SoftLock.cs b/BinaryObjectScanner/Protection/SoftLock.cs index 6be702eb..e8367738 100644 --- a/BinaryObjectScanner/Protection/SoftLock.cs +++ b/BinaryObjectScanner/Protection/SoftLock.cs @@ -82,7 +82,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SolidShield.cs b/BinaryObjectScanner/Protection/SolidShield.cs index ae395251..bbd8a6f8 100644 --- a/BinaryObjectScanner/Protection/SolidShield.cs +++ b/BinaryObjectScanner/Protection/SolidShield.cs @@ -107,7 +107,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/StarForce.cs b/BinaryObjectScanner/Protection/StarForce.cs index 1664431c..1f220074 100644 --- a/BinaryObjectScanner/Protection/StarForce.cs +++ b/BinaryObjectScanner/Protection/StarForce.cs @@ -103,7 +103,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Steam.cs b/BinaryObjectScanner/Protection/Steam.cs index d3a1db1e..8c5b88a3 100644 --- a/BinaryObjectScanner/Protection/Steam.cs +++ b/BinaryObjectScanner/Protection/Steam.cs @@ -41,7 +41,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/TZCopyProtection.cs b/BinaryObjectScanner/Protection/TZCopyProtection.cs index d2e5ac89..85438970 100644 --- a/BinaryObjectScanner/Protection/TZCopyProtection.cs +++ b/BinaryObjectScanner/Protection/TZCopyProtection.cs @@ -53,7 +53,7 @@ namespace BinaryObjectScanner.Protection public class TZCopyProtection : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Tages.cs b/BinaryObjectScanner/Protection/Tages.cs index 3b45dd0d..c6c239d8 100644 --- a/BinaryObjectScanner/Protection/Tages.cs +++ b/BinaryObjectScanner/Protection/Tages.cs @@ -63,7 +63,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Uplay.cs b/BinaryObjectScanner/Protection/Uplay.cs index c9c18f3e..2d483be2 100644 --- a/BinaryObjectScanner/Protection/Uplay.cs +++ b/BinaryObjectScanner/Protection/Uplay.cs @@ -44,7 +44,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/WMDS.cs b/BinaryObjectScanner/Protection/WMDS.cs index ce9ad2df..ebc48ecc 100644 --- a/BinaryObjectScanner/Protection/WMDS.cs +++ b/BinaryObjectScanner/Protection/WMDS.cs @@ -43,7 +43,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/WTMCDProtect.cs b/BinaryObjectScanner/Protection/WTMCDProtect.cs index e078d109..54757217 100644 --- a/BinaryObjectScanner/Protection/WTMCDProtect.cs +++ b/BinaryObjectScanner/Protection/WTMCDProtect.cs @@ -51,7 +51,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/WinLock.cs b/BinaryObjectScanner/Protection/WinLock.cs index a76ac338..ecf1408f 100644 --- a/BinaryObjectScanner/Protection/WinLock.cs +++ b/BinaryObjectScanner/Protection/WinLock.cs @@ -19,7 +19,7 @@ namespace BinaryObjectScanner.Protection public class WinLock : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/XCP.cs b/BinaryObjectScanner/Protection/XCP.cs index 5d1654b7..d5455337 100644 --- a/BinaryObjectScanner/Protection/XCP.cs +++ b/BinaryObjectScanner/Protection/XCP.cs @@ -40,7 +40,7 @@ namespace BinaryObjectScanner.Protection } /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/Zzxzz.cs b/BinaryObjectScanner/Protection/Zzxzz.cs index f3b7006f..38251fc2 100644 --- a/BinaryObjectScanner/Protection/Zzxzz.cs +++ b/BinaryObjectScanner/Protection/Zzxzz.cs @@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Protection public class Zzxzz : IPathCheck { /// - public List CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, List? files) { var matchers = new List { diff --git a/BinaryObjectScanner/ProtectionDictionary.cs b/BinaryObjectScanner/ProtectionDictionary.cs index df366bb6..00761575 100644 --- a/BinaryObjectScanner/ProtectionDictionary.cs +++ b/BinaryObjectScanner/ProtectionDictionary.cs @@ -42,7 +42,10 @@ namespace BinaryObjectScanner // Add the key if needed and then append the lists EnsureKey(key); - AddRangeToKey(key, values); + foreach (string value in values) + { + this[key].Enqueue(value); + } } ///