mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-14 05:36:07 +00:00
Fix reading generic sections
This commit is contained in:
@@ -16,7 +16,7 @@ namespace BurnOutSharp.ProtectionType
|
||||
return null;
|
||||
|
||||
// Get the last .bss section, if it exists
|
||||
var bssSectionRaw = pex.ReadRawSection(fileContent, ".bss", true);
|
||||
var bssSectionRaw = pex.ReadRawSection(fileContent, ".bss", first: false);
|
||||
if (bssSectionRaw != null)
|
||||
{
|
||||
var matchers = new List<ContentMatchSet>
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace BurnOutSharp.ProtectionType
|
||||
return null;
|
||||
|
||||
// Get the .grand section, if it exists
|
||||
var grandSectionRaw = pex.ReadRawSection(fileContent, ".grand", true);
|
||||
var grandSectionRaw = pex.ReadRawSection(fileContent, ".grand", first: true);
|
||||
if (grandSectionRaw != null)
|
||||
{
|
||||
var matchers = new List<ContentMatchSet>
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace BurnOutSharp.ProtectionType
|
||||
return $"SolidShield Activation Manager Module {GetFileVersion(pex)}";
|
||||
|
||||
// Get the .init section, if it exists
|
||||
var initSectionRaw = pex.ReadRawSection(fileContent, ".init", true);
|
||||
var initSectionRaw = pex.ReadRawSection(fileContent, ".init", first: true);
|
||||
if (initSectionRaw != null)
|
||||
{
|
||||
var matchers = new List<ContentMatchSet>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace BurnOutSharp.ProtectionType
|
||||
return null;
|
||||
|
||||
// Get the CODE section, if it exists
|
||||
var codeSectionRaw = pex.ReadRawSection(fileContent, "CODE", true);
|
||||
var codeSectionRaw = pex.ReadRawSection(fileContent, "CODE", first: true);
|
||||
if (codeSectionRaw != null)
|
||||
{
|
||||
var matchers = new List<ContentMatchSet>
|
||||
|
||||
Reference in New Issue
Block a user