Use SourceArray for NE checks

This commit is contained in:
Matt Nadareski
2022-03-14 22:43:26 -07:00
parent 0fa6673d21
commit 3820546c07
6 changed files with 10 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ namespace BurnOutSharp.ProtectionType
}
/// <inheritdoc/>
public string CheckNEContents(string file, byte[] fileContent, bool includeDebug, NewExecutable nex)
public string CheckNEContents(string file, bool includeDebug, NewExecutable nex)
{
// Get the DOS stub from the executable, if possible
var stub = nex?.DOSStubHeader;
@@ -63,7 +63,7 @@ namespace BurnOutSharp.ProtectionType
}, GetVersion, "CD-Cops"),
};
return MatchUtil.GetFirstMatch(file, fileContent, neMatchSets, includeDebug);
return MatchUtil.GetFirstMatch(file, nex.SourceArray, neMatchSets, includeDebug);
}
/// <inheritdoc/>