mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-05-06 20:43:44 +00:00
Use SourceArray for NE checks
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user