Reduce reliance on fileContent; add notes

This commit is contained in:
Matt Nadareski
2021-09-11 22:27:52 -07:00
parent 44c44be412
commit d6fd0c4d2c
13 changed files with 49 additions and 57 deletions

View File

@@ -33,8 +33,8 @@ namespace BurnOutSharp.ProtectionType
return match;
// Get the .tls section, if it exists
var tlsSection = pex.GetLastSection(".tls", exact: true);
match = GetMatchForSection(tlsSection, file, fileContent, includeDebug);
var tlsSectionRaw = pex.ReadRawSection(fileContent, ".tls", first: false);
match = GetMatchForSection(file, tlsSectionRaw, includeDebug);
if (!string.IsNullOrWhiteSpace(match))
return match;