Separate protections into their own classes

This commit is contained in:
Matt Nadareski
2019-09-27 23:52:24 -07:00
parent 9e4836826d
commit 550086791b
82 changed files with 3675 additions and 1209 deletions

View File

@@ -0,0 +1,18 @@
namespace BurnOutSharp.ProtectionType
{
public class CodeLock
{
public static string CheckContents(string fileContent)
{
// TODO: Check if OR or AND
if (fileContent.Contains("icd1" + (char)0x00)
|| fileContent.Contains("icd2" + (char)0x00)
|| fileContent.Contains("CODE-LOCK.OCX"))
{
return "Code Lock";
}
return null;
}
}
}