Make it easier to support new file types

This commit is contained in:
Matt Nadareski
2022-12-08 21:32:52 -08:00
parent 3b4929a368
commit 39f2dd88aa
22 changed files with 718 additions and 49 deletions

View File

@@ -46,12 +46,12 @@ namespace BurnOutSharp.ProtectionType
{
0x45, 0x52, 0x65, 0x67, 0x20, 0x43, 0x6F, 0x6E,
0x66, 0x69, 0x67, 0x20, 0x46, 0x6F, 0x72, 0x6D
}, Utilities.GetInternalVersion, "EA CdKey Registration Module"),
}, "EA CdKey Registration Module"),
};
string match = MatchUtil.GetFirstMatch(file, dataSectionRaw, matchers, includeDebug);
if (!string.IsNullOrWhiteSpace(match))
return match;
return $"{match} {Utilities.GetInternalVersion(pex)}";
}
// Get the .rdata section, if it exists