From c915f29c05dd722f09791048820a261aa623a7c4 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 14 Sep 2021 13:53:30 -0700 Subject: [PATCH] Minor formatting changes --- BurnOutSharp/ProtectionType/CodeLock.cs | 3 +-- BurnOutSharp/ProtectionType/XCP.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BurnOutSharp/ProtectionType/CodeLock.cs b/BurnOutSharp/ProtectionType/CodeLock.cs index 8acab46c..20091348 100644 --- a/BurnOutSharp/ProtectionType/CodeLock.cs +++ b/BurnOutSharp/ProtectionType/CodeLock.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using System.Text; using BurnOutSharp.ExecutableType.Microsoft; using BurnOutSharp.Matching; @@ -17,7 +16,7 @@ namespace BurnOutSharp.ProtectionType return null; // If there are more than 2 icd-prefixed sections, then we have a match - int icdSectionCount = sections.Count(s => Encoding.ASCII.GetString(s.Name).StartsWith("icd")); + int icdSectionCount = pex.GetSectionNames().Count(s => s.StartsWith("icd")); if (icdSectionCount >= 2) return "CodeLock"; diff --git a/BurnOutSharp/ProtectionType/XCP.cs b/BurnOutSharp/ProtectionType/XCP.cs index 732ebf2a..88575bd7 100644 --- a/BurnOutSharp/ProtectionType/XCP.cs +++ b/BurnOutSharp/ProtectionType/XCP.cs @@ -29,7 +29,7 @@ namespace BurnOutSharp.ProtectionType new ContentMatchSet(new byte?[] { 0x58, 0x43, 0x50, 0x2E, 0x44, 0x41, 0x54 }, "XCP"), // xcpdrive - new ContentMatchSet(new byte?[] { 0x78, 0x63, 0x70, 0x64, 0x72, 0x69, 0x76, 0x65 }, "XCP"), + new ContentMatchSet(new byte?[] { 0x78, 0x63, 0x70, 0x64, 0x72, 0x69, 0x76, 0x65 }, "XCP"), // XCPPlugins.dll new ContentMatchSet(new byte?[]