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

@@ -24,10 +24,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>
{
// Trial + (char)0x00 + P
new Matcher(new byte?[] { 0x54, 0x72, 0x69, 0x61, 0x6C, 0x00, 0x50 }, "INTENIUM Trial & Buy Protection"),
new ContentMatchSet(new byte?[] { 0x54, 0x72, 0x69, 0x61, 0x6C, 0x00, 0x50 }, "INTENIUM Trial & Buy Protection"),
};
return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);