Files
BinaryObjectScanner/BinaryObjectScanner/Protection/CDCheck.cs
2025-09-21 13:32:45 -04:00

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;
}
}
}