From fd6de0d10cc59124805bcccaeeb6c701d5803586 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 8 Sep 2025 17:11:06 -0400 Subject: [PATCH] Add yuPlay Launcher detection --- BinaryObjectScanner/Protection/YuPlay.cs | 35 ++++++++++++++++++++++++ README.md | 1 + 2 files changed, 36 insertions(+) create mode 100644 BinaryObjectScanner/Protection/YuPlay.cs diff --git a/BinaryObjectScanner/Protection/YuPlay.cs b/BinaryObjectScanner/Protection/YuPlay.cs new file mode 100644 index 00000000..bfc9c861 --- /dev/null +++ b/BinaryObjectScanner/Protection/YuPlay.cs @@ -0,0 +1,35 @@ +using System.Collections.Generic; +using BinaryObjectScanner.Interfaces; +using SabreTools.Matching; +using SabreTools.Matching.Paths; + +namespace BinaryObjectScanner.Protection +{ + /// + /// yuPlay Launcher + /// + public class YuPlay : IPathCheck + { + /// + public List CheckDirectoryPath(string path, List? files) + { + var matchers = new List + { + new(new FilePathMatch("yuPlay.exe"), "yuPlay Launcher"), + }; + + return MatchUtil.GetAllMatches(files, matchers, any: false); + } + + /// + public string? CheckFilePath(string path) + { + var matchers = new List + { + new(new FilePathMatch("yuPlay.exe"), "yuPlay Launcher"), + }; + + return MatchUtil.GetFirstMatch(path, matchers, any: true); + } + } +} diff --git a/README.md b/README.md index 5928d1db..79fe3c2c 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ Below is a list of protections detected by BinaryObjectScanner. The two columns | Winlock | False | True | | | WTM CD Protect | True | True | | | XCP | True | True | | +| yuPlay Launcher | False | True | | | Zzxzz | False | True | | ### Notes