Move resource helpers to PortableExecutable

This commit is contained in:
Matt Nadareski
2022-04-02 15:54:51 -07:00
parent 32695ee6dd
commit 61c09e3c97
27 changed files with 335 additions and 352 deletions

View File

@@ -2,7 +2,6 @@
using System.Collections.Generic;
using BurnOutSharp.ExecutableType.Microsoft.PE;
using BurnOutSharp.Matching;
using BurnOutSharp.Tools;
namespace BurnOutSharp.ProtectionType
{
@@ -16,7 +15,7 @@ namespace BurnOutSharp.ProtectionType
if (sections == null)
return null;
var resource = Utilities.FindResourceInSection(pex.ResourceSection, dataContains: "Cd3Ctl");
var resource = pex.FindResource(dataContains: "Cd3Ctl");
if (resource != null)
return $"MediaMax CD-3";