From c1cb1a41a9eb4eaf97b5dc13b9bd6489de00e3c6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 8 Dec 2022 14:53:59 -0800 Subject: [PATCH] Add note to CDSHiELD SE --- BurnOutSharp/ProtectionType/CDSHiELDSE.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BurnOutSharp/ProtectionType/CDSHiELDSE.cs b/BurnOutSharp/ProtectionType/CDSHiELDSE.cs index 7ef63ba1..7300c082 100644 --- a/BurnOutSharp/ProtectionType/CDSHiELDSE.cs +++ b/BurnOutSharp/ProtectionType/CDSHiELDSE.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; using BurnOutSharp.Interfaces; using BurnOutSharp.Matching; using BurnOutSharp.Wrappers; @@ -15,6 +16,15 @@ namespace BurnOutSharp.ProtectionType if (sections == null) return null; + // TODO: Indicates Hypertech Crack Proof as well? + //// Get the import directory table + //if (pex.ImportTable?.ImportDirectoryTable != null) + //{ + // bool match = pex.ImportTable.ImportDirectoryTable.Any(idte => idte.Name == "KeRnEl32.dLl"); + // if (match) + // return "CDSHiELD SE"; + //} + // Get the code/CODE section, if it exists var codeSectionRaw = pex.GetFirstSectionData("code") ?? pex.GetFirstSectionData("CODE"); if (codeSectionRaw != null)