From cf62be365c1c7ecc5c345fc9456a4e9c09524a56 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 20 Nov 2024 17:05:40 -0500 Subject: [PATCH] Use List where possible --- BinaryObjectScanner/Interfaces/IPathCheck.cs | 2 +- BinaryObjectScanner/Protection/AegiSoft.cs | 2 +- BinaryObjectScanner/Protection/AlphaDVD.cs | 2 +- BinaryObjectScanner/Protection/Bitpool.cs | 2 +- BinaryObjectScanner/Protection/ByteShield.cs | 2 +- BinaryObjectScanner/Protection/CDDVDCops.cs | 2 +- BinaryObjectScanner/Protection/CDGuard.cs | 2 +- BinaryObjectScanner/Protection/CDLock.cs | 2 +- BinaryObjectScanner/Protection/CDProtector.cs | 2 +- BinaryObjectScanner/Protection/CDX.cs | 2 +- BinaryObjectScanner/Protection/CenegaProtectDVD.cs | 2 +- BinaryObjectScanner/Protection/Channelware.cs | 2 +- BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs | 2 +- BinaryObjectScanner/Protection/CopyKiller.cs | 2 +- BinaryObjectScanner/Protection/CopyX.cs | 2 +- BinaryObjectScanner/Protection/CrypKey.cs | 2 +- BinaryObjectScanner/Protection/DVDCrypt.cs | 2 +- BinaryObjectScanner/Protection/DVDMoviePROTECT.cs | 2 +- BinaryObjectScanner/Protection/Denuvo.cs | 2 +- BinaryObjectScanner/Protection/DigiGuard.cs | 2 +- BinaryObjectScanner/Protection/DinamicMultimedia.cs | 2 +- BinaryObjectScanner/Protection/DiscGuard.cs | 2 +- BinaryObjectScanner/Protection/EAAntiCheat.cs | 2 +- BinaryObjectScanner/Protection/EasyAntiCheat.cs | 2 +- BinaryObjectScanner/Protection/Engine32.cs | 2 +- BinaryObjectScanner/Protection/FreeLock.cs | 2 +- BinaryObjectScanner/Protection/GFWL.cs | 2 +- BinaryObjectScanner/Protection/Gefest.cs | 2 +- BinaryObjectScanner/Protection/HexaLock.cs | 2 +- BinaryObjectScanner/Protection/ImpulseReactor.cs | 2 +- BinaryObjectScanner/Protection/IndyVCD.cs | 2 +- BinaryObjectScanner/Protection/KalypsoLauncher.cs | 2 +- BinaryObjectScanner/Protection/LabelGate.cs | 2 +- BinaryObjectScanner/Protection/LaserLok.cs | 2 +- BinaryObjectScanner/Protection/Macrovision.cs | 2 +- BinaryObjectScanner/Protection/MediaCloQ.cs | 2 +- BinaryObjectScanner/Protection/MediaMax.cs | 2 +- BinaryObjectScanner/Protection/NEACProtect.cs | 2 +- BinaryObjectScanner/Protection/NProtect.cs | 2 +- BinaryObjectScanner/Protection/OpenMG.cs | 2 +- BinaryObjectScanner/Protection/Origin.cs | 2 +- BinaryObjectScanner/Protection/PlayJ.cs | 2 +- BinaryObjectScanner/Protection/ProtectDVDVideo.cs | 2 +- BinaryObjectScanner/Protection/ProtectDisc.cs | 2 +- BinaryObjectScanner/Protection/RainbowSentinel.cs | 2 +- BinaryObjectScanner/Protection/RealArcade.cs | 2 +- BinaryObjectScanner/Protection/RingPROTECH.cs | 2 +- BinaryObjectScanner/Protection/Roxxe.cs | 2 +- BinaryObjectScanner/Protection/SVKP.cs | 2 +- BinaryObjectScanner/Protection/SafeLock.cs | 2 +- BinaryObjectScanner/Protection/SecuROM.cs | 2 +- BinaryObjectScanner/Protection/SmartE.cs | 2 +- BinaryObjectScanner/Protection/SoftLock.cs | 2 +- BinaryObjectScanner/Protection/SolidShield.cs | 2 +- BinaryObjectScanner/Protection/StarForce.cs | 2 +- BinaryObjectScanner/Protection/Steam.cs | 2 +- BinaryObjectScanner/Protection/TZCopyProtection.cs | 2 +- BinaryObjectScanner/Protection/Tages.cs | 2 +- BinaryObjectScanner/Protection/Uplay.cs | 2 +- BinaryObjectScanner/Protection/WMDS.cs | 2 +- BinaryObjectScanner/Protection/WTMCDProtect.cs | 2 +- BinaryObjectScanner/Protection/WinLock.cs | 2 +- BinaryObjectScanner/Protection/XCP.cs | 2 +- BinaryObjectScanner/Protection/Zzxzz.cs | 2 +- BinaryObjectScanner/ProtectionDictionary.cs | 2 +- 65 files changed, 65 insertions(+), 65 deletions(-) diff --git a/BinaryObjectScanner/Interfaces/IPathCheck.cs b/BinaryObjectScanner/Interfaces/IPathCheck.cs index e12dee29..6b7999bf 100644 --- a/BinaryObjectScanner/Interfaces/IPathCheck.cs +++ b/BinaryObjectScanner/Interfaces/IPathCheck.cs @@ -16,7 +16,7 @@ namespace BinaryObjectScanner.Interfaces /// Path to check for protection indicators /// Enumerable 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 - IEnumerable CheckDirectoryPath(string path, IEnumerable? files); + List CheckDirectoryPath(string path, IEnumerable? files); /// /// Check a file path for protections based on path name diff --git a/BinaryObjectScanner/Protection/AegiSoft.cs b/BinaryObjectScanner/Protection/AegiSoft.cs index 954f72f7..d012ca71 100644 --- a/BinaryObjectScanner/Protection/AegiSoft.cs +++ b/BinaryObjectScanner/Protection/AegiSoft.cs @@ -68,7 +68,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/AlphaDVD.cs b/BinaryObjectScanner/Protection/AlphaDVD.cs index 7653feb3..f10e929e 100644 --- a/BinaryObjectScanner/Protection/AlphaDVD.cs +++ b/BinaryObjectScanner/Protection/AlphaDVD.cs @@ -16,7 +16,7 @@ namespace BinaryObjectScanner.Protection public class AlphaDVD : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Bitpool.cs b/BinaryObjectScanner/Protection/Bitpool.cs index b09277f7..5f01cd6f 100644 --- a/BinaryObjectScanner/Protection/Bitpool.cs +++ b/BinaryObjectScanner/Protection/Bitpool.cs @@ -13,7 +13,7 @@ namespace BinaryObjectScanner.Protection public class Bitpool : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ByteShield.cs b/BinaryObjectScanner/Protection/ByteShield.cs index d39176e8..ce87df20 100644 --- a/BinaryObjectScanner/Protection/ByteShield.cs +++ b/BinaryObjectScanner/Protection/ByteShield.cs @@ -130,7 +130,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 7c5288ce..602bf886 100644 --- a/BinaryObjectScanner/Protection/CDDVDCops.cs +++ b/BinaryObjectScanner/Protection/CDDVDCops.cs @@ -182,7 +182,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 ae058f67..3bcbe398 100644 --- a/BinaryObjectScanner/Protection/CDGuard.cs +++ b/BinaryObjectScanner/Protection/CDGuard.cs @@ -54,7 +54,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CDLock.cs b/BinaryObjectScanner/Protection/CDLock.cs index b1bef3ea..bfbdbad2 100644 --- a/BinaryObjectScanner/Protection/CDLock.cs +++ b/BinaryObjectScanner/Protection/CDLock.cs @@ -62,7 +62,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CDProtector.cs b/BinaryObjectScanner/Protection/CDProtector.cs index e914b72d..84e641b3 100644 --- a/BinaryObjectScanner/Protection/CDProtector.cs +++ b/BinaryObjectScanner/Protection/CDProtector.cs @@ -17,7 +17,7 @@ namespace BinaryObjectScanner.Protection public class CDProtector : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CDX.cs b/BinaryObjectScanner/Protection/CDX.cs index 3ec1de52..69399d5a 100644 --- a/BinaryObjectScanner/Protection/CDX.cs +++ b/BinaryObjectScanner/Protection/CDX.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Protection public class CDX : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 60a1c8eb..19ee6038 100644 --- a/BinaryObjectScanner/Protection/CenegaProtectDVD.cs +++ b/BinaryObjectScanner/Protection/CenegaProtectDVD.cs @@ -53,7 +53,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Channelware.cs b/BinaryObjectScanner/Protection/Channelware.cs index ad617e3f..b0589c63 100644 --- a/BinaryObjectScanner/Protection/Channelware.cs +++ b/BinaryObjectScanner/Protection/Channelware.cs @@ -61,7 +61,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs b/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs index 8d0be49f..13663d62 100644 --- a/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs +++ b/BinaryObjectScanner/Protection/ChosenBytesCodeLock.cs @@ -53,7 +53,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/CopyKiller.cs b/BinaryObjectScanner/Protection/CopyKiller.cs index 307cdc62..2c2311da 100644 --- a/BinaryObjectScanner/Protection/CopyKiller.cs +++ b/BinaryObjectScanner/Protection/CopyKiller.cs @@ -36,7 +36,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 0feba2d8..2d973e26 100644 --- a/BinaryObjectScanner/Protection/CopyX.cs +++ b/BinaryObjectScanner/Protection/CopyX.cs @@ -93,7 +93,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/CrypKey.cs b/BinaryObjectScanner/Protection/CrypKey.cs index 170a66fb..25d7c396 100644 --- a/BinaryObjectScanner/Protection/CrypKey.cs +++ b/BinaryObjectScanner/Protection/CrypKey.cs @@ -73,7 +73,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DVDCrypt.cs b/BinaryObjectScanner/Protection/DVDCrypt.cs index 0940e87e..0d44ea8c 100644 --- a/BinaryObjectScanner/Protection/DVDCrypt.cs +++ b/BinaryObjectScanner/Protection/DVDCrypt.cs @@ -8,7 +8,7 @@ namespace BinaryObjectScanner.Protection public class DVDCrypt : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs b/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs index 270b4e91..4dfdb75c 100644 --- a/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs +++ b/BinaryObjectScanner/Protection/DVDMoviePROTECT.cs @@ -9,7 +9,7 @@ namespace BinaryObjectScanner.Protection public class DVDMoviePROTECT : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/Denuvo.cs b/BinaryObjectScanner/Protection/Denuvo.cs index 7c946e6b..be1efb48 100644 --- a/BinaryObjectScanner/Protection/Denuvo.cs +++ b/BinaryObjectScanner/Protection/Denuvo.cs @@ -263,7 +263,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DigiGuard.cs b/BinaryObjectScanner/Protection/DigiGuard.cs index 9e068c0f..19975ef1 100644 --- a/BinaryObjectScanner/Protection/DigiGuard.cs +++ b/BinaryObjectScanner/Protection/DigiGuard.cs @@ -52,7 +52,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DinamicMultimedia.cs b/BinaryObjectScanner/Protection/DinamicMultimedia.cs index 9ebccc22..0726633a 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 IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/DiscGuard.cs b/BinaryObjectScanner/Protection/DiscGuard.cs index 4a4a60b9..e995db3f 100644 --- a/BinaryObjectScanner/Protection/DiscGuard.cs +++ b/BinaryObjectScanner/Protection/DiscGuard.cs @@ -138,7 +138,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/EAAntiCheat.cs b/BinaryObjectScanner/Protection/EAAntiCheat.cs index 2f6c7fd6..822531ca 100644 --- a/BinaryObjectScanner/Protection/EAAntiCheat.cs +++ b/BinaryObjectScanner/Protection/EAAntiCheat.cs @@ -46,7 +46,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/EasyAntiCheat.cs b/BinaryObjectScanner/Protection/EasyAntiCheat.cs index 9544dd9c..63596e12 100644 --- a/BinaryObjectScanner/Protection/EasyAntiCheat.cs +++ b/BinaryObjectScanner/Protection/EasyAntiCheat.cs @@ -80,7 +80,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 a0a21421..0a44f189 100644 --- a/BinaryObjectScanner/Protection/Engine32.cs +++ b/BinaryObjectScanner/Protection/Engine32.cs @@ -50,7 +50,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/FreeLock.cs b/BinaryObjectScanner/Protection/FreeLock.cs index 0356b981..e202a618 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 IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/GFWL.cs b/BinaryObjectScanner/Protection/GFWL.cs index 432b657f..5590ea3b 100644 --- a/BinaryObjectScanner/Protection/GFWL.cs +++ b/BinaryObjectScanner/Protection/GFWL.cs @@ -34,7 +34,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Gefest.cs b/BinaryObjectScanner/Protection/Gefest.cs index 6c051afe..8ea84420 100644 --- a/BinaryObjectScanner/Protection/Gefest.cs +++ b/BinaryObjectScanner/Protection/Gefest.cs @@ -38,7 +38,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/HexaLock.cs b/BinaryObjectScanner/Protection/HexaLock.cs index 74860bce..c9aafea1 100644 --- a/BinaryObjectScanner/Protection/HexaLock.cs +++ b/BinaryObjectScanner/Protection/HexaLock.cs @@ -67,7 +67,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ImpulseReactor.cs b/BinaryObjectScanner/Protection/ImpulseReactor.cs index 466bef01..4b6f19f0 100644 --- a/BinaryObjectScanner/Protection/ImpulseReactor.cs +++ b/BinaryObjectScanner/Protection/ImpulseReactor.cs @@ -54,7 +54,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/IndyVCD.cs b/BinaryObjectScanner/Protection/IndyVCD.cs index 8c0f53fd..ff01bc2a 100644 --- a/BinaryObjectScanner/Protection/IndyVCD.cs +++ b/BinaryObjectScanner/Protection/IndyVCD.cs @@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Protection public class IndyVCD : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 d4fb9d40..454ce4d5 100644 --- a/BinaryObjectScanner/Protection/KalypsoLauncher.cs +++ b/BinaryObjectScanner/Protection/KalypsoLauncher.cs @@ -56,7 +56,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/LabelGate.cs b/BinaryObjectScanner/Protection/LabelGate.cs index 6863536f..19783973 100644 --- a/BinaryObjectScanner/Protection/LabelGate.cs +++ b/BinaryObjectScanner/Protection/LabelGate.cs @@ -48,7 +48,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/LaserLok.cs b/BinaryObjectScanner/Protection/LaserLok.cs index d5455d46..9f7f2e83 100644 --- a/BinaryObjectScanner/Protection/LaserLok.cs +++ b/BinaryObjectScanner/Protection/LaserLok.cs @@ -118,7 +118,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Macrovision.cs b/BinaryObjectScanner/Protection/Macrovision.cs index 9c4516de..1dac1112 100644 --- a/BinaryObjectScanner/Protection/Macrovision.cs +++ b/BinaryObjectScanner/Protection/Macrovision.cs @@ -165,7 +165,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var results = new List(); diff --git a/BinaryObjectScanner/Protection/MediaCloQ.cs b/BinaryObjectScanner/Protection/MediaCloQ.cs index b49d5266..4d54be01 100644 --- a/BinaryObjectScanner/Protection/MediaCloQ.cs +++ b/BinaryObjectScanner/Protection/MediaCloQ.cs @@ -37,7 +37,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/MediaMax.cs b/BinaryObjectScanner/Protection/MediaMax.cs index 2a657478..e2f85775 100644 --- a/BinaryObjectScanner/Protection/MediaMax.cs +++ b/BinaryObjectScanner/Protection/MediaMax.cs @@ -63,7 +63,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/NEACProtect.cs b/BinaryObjectScanner/Protection/NEACProtect.cs index 5cfa70b8..8924d83d 100644 --- a/BinaryObjectScanner/Protection/NEACProtect.cs +++ b/BinaryObjectScanner/Protection/NEACProtect.cs @@ -50,7 +50,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/NProtect.cs b/BinaryObjectScanner/Protection/NProtect.cs index 3578ec3d..3e42f470 100644 --- a/BinaryObjectScanner/Protection/NProtect.cs +++ b/BinaryObjectScanner/Protection/NProtect.cs @@ -80,7 +80,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/OpenMG.cs b/BinaryObjectScanner/Protection/OpenMG.cs index c331015d..2f4a8ccd 100644 --- a/BinaryObjectScanner/Protection/OpenMG.cs +++ b/BinaryObjectScanner/Protection/OpenMG.cs @@ -64,7 +64,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Origin.cs b/BinaryObjectScanner/Protection/Origin.cs index c83ca933..2b2dff02 100644 --- a/BinaryObjectScanner/Protection/Origin.cs +++ b/BinaryObjectScanner/Protection/Origin.cs @@ -29,7 +29,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/PlayJ.cs b/BinaryObjectScanner/Protection/PlayJ.cs index ac7728e9..f0f1ed57 100644 --- a/BinaryObjectScanner/Protection/PlayJ.cs +++ b/BinaryObjectScanner/Protection/PlayJ.cs @@ -40,7 +40,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/ProtectDVDVideo.cs b/BinaryObjectScanner/Protection/ProtectDVDVideo.cs index fc8191d7..f4603acd 100644 --- a/BinaryObjectScanner/Protection/ProtectDVDVideo.cs +++ b/BinaryObjectScanner/Protection/ProtectDVDVideo.cs @@ -9,7 +9,7 @@ namespace BinaryObjectScanner.Protection public class ProtectDVDVideo : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/ProtectDisc.cs b/BinaryObjectScanner/Protection/ProtectDisc.cs index c4fb808c..ed96cae3 100644 --- a/BinaryObjectScanner/Protection/ProtectDisc.cs +++ b/BinaryObjectScanner/Protection/ProtectDisc.cs @@ -97,7 +97,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/RainbowSentinel.cs b/BinaryObjectScanner/Protection/RainbowSentinel.cs index 1e0c61e5..d9873034 100644 --- a/BinaryObjectScanner/Protection/RainbowSentinel.cs +++ b/BinaryObjectScanner/Protection/RainbowSentinel.cs @@ -287,7 +287,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/RealArcade.cs b/BinaryObjectScanner/Protection/RealArcade.cs index 3326e80c..3f40c238 100644 --- a/BinaryObjectScanner/Protection/RealArcade.cs +++ b/BinaryObjectScanner/Protection/RealArcade.cs @@ -41,7 +41,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/RingPROTECH.cs b/BinaryObjectScanner/Protection/RingPROTECH.cs index 93bbe099..cd3ee753 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 IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Roxxe.cs b/BinaryObjectScanner/Protection/Roxxe.cs index e3b024fe..a0475e95 100644 --- a/BinaryObjectScanner/Protection/Roxxe.cs +++ b/BinaryObjectScanner/Protection/Roxxe.cs @@ -61,7 +61,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SVKP.cs b/BinaryObjectScanner/Protection/SVKP.cs index 0f889956..913faa6f 100644 --- a/BinaryObjectScanner/Protection/SVKP.cs +++ b/BinaryObjectScanner/Protection/SVKP.cs @@ -122,7 +122,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SafeLock.cs b/BinaryObjectScanner/Protection/SafeLock.cs index 3c63fa9b..3968779a 100644 --- a/BinaryObjectScanner/Protection/SafeLock.cs +++ b/BinaryObjectScanner/Protection/SafeLock.cs @@ -20,7 +20,7 @@ namespace BinaryObjectScanner.Protection public class SafeLock : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? 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 b934ef83..2f3c2238 100644 --- a/BinaryObjectScanner/Protection/SecuROM.cs +++ b/BinaryObjectScanner/Protection/SecuROM.cs @@ -117,7 +117,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SmartE.cs b/BinaryObjectScanner/Protection/SmartE.cs index c0bf0c9a..d36b8fb8 100644 --- a/BinaryObjectScanner/Protection/SmartE.cs +++ b/BinaryObjectScanner/Protection/SmartE.cs @@ -28,7 +28,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SoftLock.cs b/BinaryObjectScanner/Protection/SoftLock.cs index fd07fa48..6be702eb 100644 --- a/BinaryObjectScanner/Protection/SoftLock.cs +++ b/BinaryObjectScanner/Protection/SoftLock.cs @@ -82,7 +82,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/SolidShield.cs b/BinaryObjectScanner/Protection/SolidShield.cs index 19680b0e..ae395251 100644 --- a/BinaryObjectScanner/Protection/SolidShield.cs +++ b/BinaryObjectScanner/Protection/SolidShield.cs @@ -107,7 +107,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/StarForce.cs b/BinaryObjectScanner/Protection/StarForce.cs index 102e5d07..1664431c 100644 --- a/BinaryObjectScanner/Protection/StarForce.cs +++ b/BinaryObjectScanner/Protection/StarForce.cs @@ -103,7 +103,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Steam.cs b/BinaryObjectScanner/Protection/Steam.cs index 851c0a92..d3a1db1e 100644 --- a/BinaryObjectScanner/Protection/Steam.cs +++ b/BinaryObjectScanner/Protection/Steam.cs @@ -41,7 +41,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/TZCopyProtection.cs b/BinaryObjectScanner/Protection/TZCopyProtection.cs index c1a3ce8c..d2e5ac89 100644 --- a/BinaryObjectScanner/Protection/TZCopyProtection.cs +++ b/BinaryObjectScanner/Protection/TZCopyProtection.cs @@ -53,7 +53,7 @@ namespace BinaryObjectScanner.Protection public class TZCopyProtection : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Tages.cs b/BinaryObjectScanner/Protection/Tages.cs index f7bce6aa..3b45dd0d 100644 --- a/BinaryObjectScanner/Protection/Tages.cs +++ b/BinaryObjectScanner/Protection/Tages.cs @@ -63,7 +63,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/Uplay.cs b/BinaryObjectScanner/Protection/Uplay.cs index 529c25c5..c9c18f3e 100644 --- a/BinaryObjectScanner/Protection/Uplay.cs +++ b/BinaryObjectScanner/Protection/Uplay.cs @@ -44,7 +44,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/WMDS.cs b/BinaryObjectScanner/Protection/WMDS.cs index c7973169..ce9ad2df 100644 --- a/BinaryObjectScanner/Protection/WMDS.cs +++ b/BinaryObjectScanner/Protection/WMDS.cs @@ -43,7 +43,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/WTMCDProtect.cs b/BinaryObjectScanner/Protection/WTMCDProtect.cs index 51f7a237..e078d109 100644 --- a/BinaryObjectScanner/Protection/WTMCDProtect.cs +++ b/BinaryObjectScanner/Protection/WTMCDProtect.cs @@ -51,7 +51,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/WinLock.cs b/BinaryObjectScanner/Protection/WinLock.cs index d00bab81..a76ac338 100644 --- a/BinaryObjectScanner/Protection/WinLock.cs +++ b/BinaryObjectScanner/Protection/WinLock.cs @@ -19,7 +19,7 @@ namespace BinaryObjectScanner.Protection public class WinLock : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/Protection/XCP.cs b/BinaryObjectScanner/Protection/XCP.cs index f3e4b28e..5d1654b7 100644 --- a/BinaryObjectScanner/Protection/XCP.cs +++ b/BinaryObjectScanner/Protection/XCP.cs @@ -40,7 +40,7 @@ namespace BinaryObjectScanner.Protection } /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var protections = new List(); if (files == null) diff --git a/BinaryObjectScanner/Protection/Zzxzz.cs b/BinaryObjectScanner/Protection/Zzxzz.cs index 0d26652c..f3b7006f 100644 --- a/BinaryObjectScanner/Protection/Zzxzz.cs +++ b/BinaryObjectScanner/Protection/Zzxzz.cs @@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Protection public class Zzxzz : IPathCheck { /// - public IEnumerable CheckDirectoryPath(string path, IEnumerable? files) + public List CheckDirectoryPath(string path, IEnumerable? files) { var matchers = new List { diff --git a/BinaryObjectScanner/ProtectionDictionary.cs b/BinaryObjectScanner/ProtectionDictionary.cs index 4e48911e..df366bb6 100644 --- a/BinaryObjectScanner/ProtectionDictionary.cs +++ b/BinaryObjectScanner/ProtectionDictionary.cs @@ -50,7 +50,7 @@ namespace BinaryObjectScanner /// /// Key to add information to /// String value to add - public void Append(string key, IEnumerable values) + public void Append(string key, ICollection values) { // Use a placeholder value if the key is null key ??= "NO FILENAME";