diff --git a/BurnOutSharp/IPathCheck.cs b/BurnOutSharp/IPathCheck.cs
new file mode 100644
index 00000000..461ff5b1
--- /dev/null
+++ b/BurnOutSharp/IPathCheck.cs
@@ -0,0 +1,16 @@
+using System.Collections.Generic;
+
+namespace BurnOutSharp
+{
+ public interface IPathCheck
+ {
+ ///
+ /// Check a path for protections based on file and directory names
+ ///
+ /// Path to check for protection indicators
+ /// Enumerable of strings representing files in a directory if the path is a directory, assumed null otherwise
+ /// True if the path represents a directory, false otherwise
+ /// String containing any protections found in the path
+ string CheckPath(string path, IEnumerable files, bool isDirectory);
+ }
+}
diff --git a/BurnOutSharp/ProtectionType/AACS.cs b/BurnOutSharp/ProtectionType/AACS.cs
index 072ba76b..1948ba23 100644
--- a/BurnOutSharp/ProtectionType/AACS.cs
+++ b/BurnOutSharp/ProtectionType/AACS.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class AACS
+ public class AACS : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/AlphaDVD.cs b/BurnOutSharp/ProtectionType/AlphaDVD.cs
index 47a1216d..edcc3d9d 100644
--- a/BurnOutSharp/ProtectionType/AlphaDVD.cs
+++ b/BurnOutSharp/ProtectionType/AlphaDVD.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class AlphaDVD
+ public class AlphaDVD : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Bitpool.cs b/BurnOutSharp/ProtectionType/Bitpool.cs
index 0c2c5c98..d3c565e7 100644
--- a/BurnOutSharp/ProtectionType/Bitpool.cs
+++ b/BurnOutSharp/ProtectionType/Bitpool.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Bitpool
+ public class Bitpool : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/ByteShield.cs b/BurnOutSharp/ProtectionType/ByteShield.cs
index 3f32bc16..b794d058 100644
--- a/BurnOutSharp/ProtectionType/ByteShield.cs
+++ b/BurnOutSharp/ProtectionType/ByteShield.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class ByteShield
+ public class ByteShield : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/CDCops.cs b/BurnOutSharp/ProtectionType/CDCops.cs
index 2df5db94..227c7301 100644
--- a/BurnOutSharp/ProtectionType/CDCops.cs
+++ b/BurnOutSharp/ProtectionType/CDCops.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class CDCops
+ public class CDCops : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -22,7 +22,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/CDLock.cs b/BurnOutSharp/ProtectionType/CDLock.cs
index 66f09f81..bac25f1c 100644
--- a/BurnOutSharp/ProtectionType/CDLock.cs
+++ b/BurnOutSharp/ProtectionType/CDLock.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class CDLock
+ public class CDLock : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/CDProtector.cs b/BurnOutSharp/ProtectionType/CDProtector.cs
index 9998798a..38975c6c 100644
--- a/BurnOutSharp/ProtectionType/CDProtector.cs
+++ b/BurnOutSharp/ProtectionType/CDProtector.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class CDProtector
+ public class CDProtector : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/CDX.cs b/BurnOutSharp/ProtectionType/CDX.cs
index f1f83a10..57315a94 100644
--- a/BurnOutSharp/ProtectionType/CDX.cs
+++ b/BurnOutSharp/ProtectionType/CDX.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class CDX
+ public class CDX : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/CactusDataShield.cs b/BurnOutSharp/ProtectionType/CactusDataShield.cs
index 0c197a05..fa5f7f60 100644
--- a/BurnOutSharp/ProtectionType/CactusDataShield.cs
+++ b/BurnOutSharp/ProtectionType/CactusDataShield.cs
@@ -6,7 +6,7 @@ using System.Text;
namespace BurnOutSharp.ProtectionType
{
- public class CactusDataShield
+ public class CactusDataShield : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -28,7 +28,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/CopyKiller.cs b/BurnOutSharp/ProtectionType/CopyKiller.cs
index c2357f25..e481275e 100644
--- a/BurnOutSharp/ProtectionType/CopyKiller.cs
+++ b/BurnOutSharp/ProtectionType/CopyKiller.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class CopyKiller
+ public class CopyKiller : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/DVDCrypt.cs b/BurnOutSharp/ProtectionType/DVDCrypt.cs
index 0e56064f..416298c5 100644
--- a/BurnOutSharp/ProtectionType/DVDCrypt.cs
+++ b/BurnOutSharp/ProtectionType/DVDCrypt.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class DVDCrypt
+ public class DVDCrypt : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/DVDMoviePROTECT.cs b/BurnOutSharp/ProtectionType/DVDMoviePROTECT.cs
index 9e453a9a..9c8f314f 100644
--- a/BurnOutSharp/ProtectionType/DVDMoviePROTECT.cs
+++ b/BurnOutSharp/ProtectionType/DVDMoviePROTECT.cs
@@ -4,9 +4,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class DVDMoviePROTECT
+ public class DVDMoviePROTECT : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (!isDirectory)
return null;
diff --git a/BurnOutSharp/ProtectionType/DiscGuard.cs b/BurnOutSharp/ProtectionType/DiscGuard.cs
index 6157b4cd..29643a0b 100644
--- a/BurnOutSharp/ProtectionType/DiscGuard.cs
+++ b/BurnOutSharp/ProtectionType/DiscGuard.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class DiscGuard
+ public class DiscGuard : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/FreeLock.cs b/BurnOutSharp/ProtectionType/FreeLock.cs
index ce57ad09..24d0e072 100644
--- a/BurnOutSharp/ProtectionType/FreeLock.cs
+++ b/BurnOutSharp/ProtectionType/FreeLock.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class FreeLock
+ public class FreeLock : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/GFWL.cs b/BurnOutSharp/ProtectionType/GFWL.cs
index ddb0e576..fe7047e9 100644
--- a/BurnOutSharp/ProtectionType/GFWL.cs
+++ b/BurnOutSharp/ProtectionType/GFWL.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class GFWL
+ public class GFWL : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/HexalockAutoLock.cs b/BurnOutSharp/ProtectionType/HexalockAutoLock.cs
index 3c4850d8..e42bee8e 100644
--- a/BurnOutSharp/ProtectionType/HexalockAutoLock.cs
+++ b/BurnOutSharp/ProtectionType/HexalockAutoLock.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class HexalockAutoLock
+ public class HexalockAutoLock : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/ImpulseReactor.cs b/BurnOutSharp/ProtectionType/ImpulseReactor.cs
index 6210065d..fc9c77bf 100644
--- a/BurnOutSharp/ProtectionType/ImpulseReactor.cs
+++ b/BurnOutSharp/ProtectionType/ImpulseReactor.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class ImpulseReactor
+ public class ImpulseReactor : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -24,7 +24,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/IndyVCD.cs b/BurnOutSharp/ProtectionType/IndyVCD.cs
index 0c5545be..2c5289a8 100644
--- a/BurnOutSharp/ProtectionType/IndyVCD.cs
+++ b/BurnOutSharp/ProtectionType/IndyVCD.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class IndyVCD
+ public class IndyVCD : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Key2AudioXS.cs b/BurnOutSharp/ProtectionType/Key2AudioXS.cs
index 5384ad48..c4abc5d4 100644
--- a/BurnOutSharp/ProtectionType/Key2AudioXS.cs
+++ b/BurnOutSharp/ProtectionType/Key2AudioXS.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Key2AudioXS
+ public class Key2AudioXS : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/LaserLock.cs b/BurnOutSharp/ProtectionType/LaserLock.cs
index 6ec6eff6..54a83389 100644
--- a/BurnOutSharp/ProtectionType/LaserLock.cs
+++ b/BurnOutSharp/ProtectionType/LaserLock.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class LaserLock
+ public class LaserLock : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -40,7 +40,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/MediaCloQ.cs b/BurnOutSharp/ProtectionType/MediaCloQ.cs
index 1a7bf571..2d3be9c6 100644
--- a/BurnOutSharp/ProtectionType/MediaCloQ.cs
+++ b/BurnOutSharp/ProtectionType/MediaCloQ.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class MediaCloQ
+ public class MediaCloQ : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/MediaMaxCD3.cs b/BurnOutSharp/ProtectionType/MediaMaxCD3.cs
index 8d2733fd..40a579b6 100644
--- a/BurnOutSharp/ProtectionType/MediaMaxCD3.cs
+++ b/BurnOutSharp/ProtectionType/MediaMaxCD3.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class MediaMaxCD3
+ public class MediaMaxCD3 : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -22,7 +22,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Origin.cs b/BurnOutSharp/ProtectionType/Origin.cs
index ce9b8e38..eea72593 100644
--- a/BurnOutSharp/ProtectionType/Origin.cs
+++ b/BurnOutSharp/ProtectionType/Origin.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Origin
+ public class Origin : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/ProtectDVDVideo.cs b/BurnOutSharp/ProtectionType/ProtectDVDVideo.cs
index 451cc0ee..75e05124 100644
--- a/BurnOutSharp/ProtectionType/ProtectDVDVideo.cs
+++ b/BurnOutSharp/ProtectionType/ProtectDVDVideo.cs
@@ -4,9 +4,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class ProtectDVDVideo
+ public class ProtectDVDVideo : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (!isDirectory)
return null;
diff --git a/BurnOutSharp/ProtectionType/SafeCast.cs b/BurnOutSharp/ProtectionType/SafeCast.cs
index bb3a3bbe..ee3d4bc6 100644
--- a/BurnOutSharp/ProtectionType/SafeCast.cs
+++ b/BurnOutSharp/ProtectionType/SafeCast.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class SafeCast
+ public class SafeCast : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SafeDisc.cs b/BurnOutSharp/ProtectionType/SafeDisc.cs
index 47d1ed33..86626200 100644
--- a/BurnOutSharp/ProtectionType/SafeDisc.cs
+++ b/BurnOutSharp/ProtectionType/SafeDisc.cs
@@ -7,7 +7,7 @@ using System.Text;
namespace BurnOutSharp.ProtectionType
{
- public class SafeDisc
+ public class SafeDisc : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -59,7 +59,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SafeDiscLite.cs b/BurnOutSharp/ProtectionType/SafeDiscLite.cs
index 225cca3a..fb0c40da 100644
--- a/BurnOutSharp/ProtectionType/SafeDiscLite.cs
+++ b/BurnOutSharp/ProtectionType/SafeDiscLite.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class SafeDiscLite
+ public class SafeDiscLite : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SafeLock.cs b/BurnOutSharp/ProtectionType/SafeLock.cs
index 6062d968..30994205 100644
--- a/BurnOutSharp/ProtectionType/SafeLock.cs
+++ b/BurnOutSharp/ProtectionType/SafeLock.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class SafeLock
+ public class SafeLock : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SecuROM.cs b/BurnOutSharp/ProtectionType/SecuROM.cs
index 84c0b076..a0186f04 100644
--- a/BurnOutSharp/ProtectionType/SecuROM.cs
+++ b/BurnOutSharp/ProtectionType/SecuROM.cs
@@ -6,7 +6,7 @@ using System.Text;
namespace BurnOutSharp.ProtectionType
{
- public class SecuROM
+ public class SecuROM : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -48,7 +48,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SmartE.cs b/BurnOutSharp/ProtectionType/SmartE.cs
index 494830ce..cda97c81 100644
--- a/BurnOutSharp/ProtectionType/SmartE.cs
+++ b/BurnOutSharp/ProtectionType/SmartE.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class SmartE
+ public class SmartE : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SoftLock.cs b/BurnOutSharp/ProtectionType/SoftLock.cs
index a220b2d5..9ac12bdf 100644
--- a/BurnOutSharp/ProtectionType/SoftLock.cs
+++ b/BurnOutSharp/ProtectionType/SoftLock.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class SoftLock
+ public class SoftLock : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/SolidShield.cs b/BurnOutSharp/ProtectionType/SolidShield.cs
index 8f630a57..ea7c0015 100644
--- a/BurnOutSharp/ProtectionType/SolidShield.cs
+++ b/BurnOutSharp/ProtectionType/SolidShield.cs
@@ -6,7 +6,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class SolidShield
+ public class SolidShield : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -112,7 +112,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/StarForce.cs b/BurnOutSharp/ProtectionType/StarForce.cs
index 00aaee0c..8ea45eff 100644
--- a/BurnOutSharp/ProtectionType/StarForce.cs
+++ b/BurnOutSharp/ProtectionType/StarForce.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class StarForce
+ public class StarForce : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -63,7 +63,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Steam.cs b/BurnOutSharp/ProtectionType/Steam.cs
index b41ba47c..1aa295be 100644
--- a/BurnOutSharp/ProtectionType/Steam.cs
+++ b/BurnOutSharp/ProtectionType/Steam.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Steam
+ public class Steam : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/TZCopyProtector.cs b/BurnOutSharp/ProtectionType/TZCopyProtector.cs
index 8312c50e..c506e0bc 100644
--- a/BurnOutSharp/ProtectionType/TZCopyProtector.cs
+++ b/BurnOutSharp/ProtectionType/TZCopyProtector.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class TZCopyProtector
+ public class TZCopyProtector : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Tages.cs b/BurnOutSharp/ProtectionType/Tages.cs
index 9819b6ea..8deee7f4 100644
--- a/BurnOutSharp/ProtectionType/Tages.cs
+++ b/BurnOutSharp/ProtectionType/Tages.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Tages
+ public class Tages : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -31,7 +31,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Uplay.cs b/BurnOutSharp/ProtectionType/Uplay.cs
index 05b47f28..eec2e2d9 100644
--- a/BurnOutSharp/ProtectionType/Uplay.cs
+++ b/BurnOutSharp/ProtectionType/Uplay.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Uplay
+ public class Uplay : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs b/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs
index a5156849..5d5fb474 100644
--- a/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs
+++ b/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs
@@ -7,7 +7,7 @@ using System.Threading;
namespace BurnOutSharp.ProtectionType
{
- public class VOBProtectCDDVD
+ public class VOBProtectCDDVD : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -44,7 +44,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/WTMCDProtect.cs b/BurnOutSharp/ProtectionType/WTMCDProtect.cs
index 99ab0c69..d1dc1703 100644
--- a/BurnOutSharp/ProtectionType/WTMCDProtect.cs
+++ b/BurnOutSharp/ProtectionType/WTMCDProtect.cs
@@ -5,7 +5,7 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class WTMCDProtect
+ public class WTMCDProtect : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -17,7 +17,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Winlock.cs b/BurnOutSharp/ProtectionType/Winlock.cs
index 8e528417..1a27194e 100644
--- a/BurnOutSharp/ProtectionType/Winlock.cs
+++ b/BurnOutSharp/ProtectionType/Winlock.cs
@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
- public class Winlock
+ public class Winlock : IPathCheck
{
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/XCP.cs b/BurnOutSharp/ProtectionType/XCP.cs
index e2d0ee37..f8421875 100644
--- a/BurnOutSharp/ProtectionType/XCP.cs
+++ b/BurnOutSharp/ProtectionType/XCP.cs
@@ -6,7 +6,7 @@ using BurnOutSharp.FileType;
namespace BurnOutSharp.ProtectionType
{
- public class XCP
+ public class XCP : IPathCheck
{
public static string CheckContents(byte[] fileContent, bool includePosition = false)
{
@@ -28,7 +28,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
- public static string CheckPath(string path, IEnumerable files, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/ProtectionType/Zzxzz.cs b/BurnOutSharp/ProtectionType/Zzxzz.cs
index feb06dde..290068a2 100644
--- a/BurnOutSharp/ProtectionType/Zzxzz.cs
+++ b/BurnOutSharp/ProtectionType/Zzxzz.cs
@@ -1,11 +1,13 @@
using System;
+using System.Collections.Generic;
using System.IO;
namespace BurnOutSharp.ProtectionType
{
- public class Zzxzz
+ public class Zzxzz : IPathCheck
{
- public static string CheckPath(string path, bool isDirectory)
+ ///
+ public string CheckPath(string path, IEnumerable files, bool isDirectory)
{
if (isDirectory)
{
diff --git a/BurnOutSharp/Scanner.cs b/BurnOutSharp/Scanner.cs
index 48e7412c..0b979e92 100644
--- a/BurnOutSharp/Scanner.cs
+++ b/BurnOutSharp/Scanner.cs
@@ -187,214 +187,214 @@ namespace BurnOutSharp
isDirectory = true;
// AACS
- protection = AACS.CheckPath(path, files, isDirectory);
+ protection = new AACS().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Alpha-DVD
- protection = AlphaDVD.CheckPath(path, files, isDirectory);
+ protection = new AlphaDVD().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Bitpool
- protection = Bitpool.CheckPath(path, files, isDirectory);
+ protection = new Bitpool().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// ByteShield
- protection = ByteShield.CheckPath(path, files, isDirectory);
+ protection = new ByteShield().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Cactus Data Shield
- protection = CactusDataShield.CheckPath(path, files, isDirectory);
+ protection = new CactusDataShield().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// CD-Cops
- protection = CDCops.CheckPath(path, files, isDirectory);
+ protection = new CDCops().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// CD-Lock
- protection = CDLock.CheckPath(path, files, isDirectory);
+ protection = new CDLock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// CD-Protector
- protection = CDProtector.CheckPath(path, files, isDirectory);
+ protection = new CDProtector().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// CD-X
- protection = CDX.CheckPath(path, files, isDirectory);
+ protection = new CDX().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
/*
// CopyKiller
- protection = CopyKiller.CheckPath(path, files, isDirectory);
+ protection = new CopyKiller().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
*/
// DiscGuard
- protection = DiscGuard.CheckPath(path, files, isDirectory);
+ protection = new DiscGuard().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// DVD Crypt
- protection = DVDCrypt.CheckPath(path, files, isDirectory);
+ protection = new DVDCrypt().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// DVD-Movie-PROTECT
- protection = DVDMoviePROTECT.CheckPath(path, files, isDirectory);
+ protection = new DVDMoviePROTECT().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// FreeLock
- protection = FreeLock.CheckPath(path, files, isDirectory);
+ protection = new FreeLock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Games for Windows - Live
- protection = GFWL.CheckPath(path, files, isDirectory);
+ protection = new GFWL().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Hexalock AutoLock
- protection = HexalockAutoLock.CheckPath(path, files, isDirectory);
+ protection = new HexalockAutoLock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Impulse Reactor
- protection = ImpulseReactor.CheckPath(path, files, isDirectory);
+ protection = new ImpulseReactor().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// IndyVCD
- protection = IndyVCD.CheckPath(path, files, isDirectory);
+ protection = new IndyVCD().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Key2Audio XS
- protection = Key2AudioXS.CheckPath(path, files, isDirectory);
+ protection = new Key2AudioXS().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// LaserLock
- protection = LaserLock.CheckPath(path, files, isDirectory);
+ protection = new LaserLock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// MediaCloQ
- protection = MediaCloQ.CheckPath(path, files, isDirectory);
+ protection = new MediaCloQ().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// MediaMax CD3
- protection = MediaMaxCD3.CheckPath(path, files, isDirectory);
+ protection = new MediaMaxCD3().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Origin
- protection = Origin.CheckPath(path, files, isDirectory);
+ protection = new Origin().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Protect DVD-Video
- protection = ProtectDVDVideo.CheckPath(path, files, isDirectory);
+ protection = new ProtectDVDVideo().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SafeCast
- protection = SafeCast.CheckPath(path, files, isDirectory);
+ protection = new SafeCast().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SafeDisc
- protection = SafeDisc.CheckPath(path, files, isDirectory);
+ protection = new SafeDisc().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SafeDisc Lite
- protection = SafeDiscLite.CheckPath(path, files, isDirectory);
+ protection = new SafeDiscLite().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SafeLock
- protection = SafeLock.CheckPath(path, files, isDirectory);
+ protection = new SafeLock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SecuROM
- protection = SecuROM.CheckPath(path, files, isDirectory);
+ protection = new SecuROM().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SmartE
- protection = SmartE.CheckPath(path, files, isDirectory);
+ protection = new SmartE().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SoftLock
- protection = SoftLock.CheckPath(path, files, isDirectory);
+ protection = new SoftLock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// SolidShield
- protection = SolidShield.CheckPath(path, files, isDirectory);
+ protection = new SolidShield().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// StarForce
- protection = StarForce.CheckPath(path, files, isDirectory);
+ protection = new StarForce().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Steam
- protection = Steam.CheckPath(path, files, isDirectory);
+ protection = new Steam().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// TAGES
- protection = Tages.CheckPath(path, files, isDirectory);
+ protection = new Tages().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// TZCopyProtector
- protection = TZCopyProtector.CheckPath(path, files, isDirectory);
+ protection = new TZCopyProtector().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Uplay
- protection = Uplay.CheckPath(path, files, isDirectory);
+ protection = new Uplay().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// VOB ProtectCD/DVD
- protection = VOBProtectCDDVD.CheckPath(path, files, isDirectory);
+ protection = new VOBProtectCDDVD().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Winlock
- protection = Winlock.CheckPath(path, files, isDirectory);
+ protection = new Winlock().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// WTM CD Protect
- protection = WTMCDProtect.CheckPath(path, files, isDirectory);
+ protection = new WTMCDProtect().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// XCP
- protection = XCP.CheckPath(path, files, isDirectory);
+ protection = new XCP().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);
// Zzxzz
- protection = Zzxzz.CheckPath(path, isDirectory);
+ protection = new Zzxzz().CheckPath(path, files, isDirectory);
if (!string.IsNullOrWhiteSpace(protection))
protections.Add(protection);