Add IPathCheck interface

This commit is contained in:
Matt Nadareski
2021-02-26 00:32:09 -08:00
parent df1e14b6c9
commit c6eaafebbe
44 changed files with 185 additions and 126 deletions

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace BurnOutSharp
{
public interface IPathCheck
{
/// <summary>
/// Check a path for protections based on file and directory names
/// </summary>
/// <param name="path">Path to check for protection indicators</param>
/// <param name="files">Enumerable of strings representing files in a directory if the path is a directory, assumed null otherwise</param>
/// <param name="isDirectory">True if the path represents a directory, false otherwise</param>
/// <returns>String containing any protections found in the path</returns>
string CheckPath(string path, IEnumerable<string> files, bool isDirectory);
}
}

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class AACS
public class AACS : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class AlphaDVD
public class AlphaDVD : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class Bitpool
public class Bitpool : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class ByteShield
public class ByteShield : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class CDProtector
public class CDProtector : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class CDX
public class CDX : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class DVDCrypt
public class DVDCrypt : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -4,9 +4,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class DVDMoviePROTECT
public class DVDMoviePROTECT : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (!isDirectory)
return null;

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class DiscGuard
public class DiscGuard : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class FreeLock
public class FreeLock : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class HexalockAutoLock
public class HexalockAutoLock : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class IndyVCD
public class IndyVCD : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class Key2AudioXS
public class Key2AudioXS : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class MediaCloQ
public class MediaCloQ : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -4,9 +4,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class ProtectDVDVideo
public class ProtectDVDVideo : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (!isDirectory)
return null;

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class SafeCast
public class SafeCast : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class SafeDiscLite
public class SafeDiscLite : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class SoftLock
public class SoftLock : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class Steam
public class Steam : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class TZCopyProtector
public class TZCopyProtector : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class Uplay
public class Uplay : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -5,9 +5,10 @@ using System.Linq;
namespace BurnOutSharp.ProtectionType
{
public class Winlock
public class Winlock : IPathCheck
{
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{

View File

@@ -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);