mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 21:31:04 +00:00
30 lines
972 B
C#
30 lines
972 B
C#
using BinaryObjectScanner.Interfaces;
|
|
using SabreTools.IO.Extensions;
|
|
using SabreTools.Serialization.Wrappers;
|
|
|
|
namespace BinaryObjectScanner.Protection
|
|
{
|
|
public class CDCheck : IExecutableCheck<PortableExecutable>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
|
|
{
|
|
string? name = exe.Comments;
|
|
if (name.OptionalContains("CDCheck utlity for Microsoft Game Studios"))
|
|
return "Microsoft Game Studios CD Check";
|
|
|
|
// To broad to be of use
|
|
//name = exe.InternalName;
|
|
//if (name.OptionalContains("CDCheck"))
|
|
// return "Microsoft Game Studios CD Check";
|
|
|
|
// To broad to be of use
|
|
//name = exe.OriginalFilename;
|
|
//if (name.OptionalContains("CDCheck.exe"))
|
|
// return "Microsoft Game Studios CD Check";
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|