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,13 +11,13 @@ namespace BurnOutSharp.ProtectionType
/// <inheritdoc/>
public string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
var matchers = new List<Matcher>
var matchers = new List<ContentMatchSet>
{
// Cd3Ctl
new Matcher(new byte?[] { 0x43, 0x64, 0x33, 0x43, 0x74, 0x6C }, "MediaMax CD-3"),
new ContentMatchSet(new byte?[] { 0x43, 0x64, 0x33, 0x43, 0x74, 0x6C }, "MediaMax CD-3"),
// DllInstallSbcp
new Matcher(new byte?[]
new ContentMatchSet(new byte?[]
{
0x44, 0x6C, 0x6C, 0x49, 0x6E, 0x73, 0x74, 0x61,
0x6C, 0x6C, 0x53, 0x62, 0x63, 0x70