Split matchers more cleanly, comment better

This commit is contained in:
Matt Nadareski
2021-03-22 21:25:14 -07:00
parent e43423d2c9
commit 6400c954ef
61 changed files with 498 additions and 409 deletions

View File

@@ -11,10 +11,10 @@ namespace BurnOutSharp.ProtectionType
/// <inheritdoc/>
public string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
var matchers = new List<Matcher>
var matchers = new List<ContentMatchSet>
{
// SafeLock
new Matcher(new byte?[] { 0x53, 0x61, 0x66, 0x65, 0x4C, 0x6F, 0x63, 0x6B }, "SafeLock"),
new ContentMatchSet(new byte?[] { 0x53, 0x61, 0x66, 0x65, 0x4C, 0x6F, 0x63, 0x6B }, "SafeLock"),
};
return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);