Add yuPlay Launcher detection

This commit is contained in:
Matt Nadareski
2025-09-08 17:11:06 -04:00
parent 760434309b
commit fd6de0d10c
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System.Collections.Generic;
using BinaryObjectScanner.Interfaces;
using SabreTools.Matching;
using SabreTools.Matching.Paths;
namespace BinaryObjectScanner.Protection
{
/// <summary>
/// yuPlay Launcher
/// </summary>
public class YuPlay : IPathCheck
{
/// <inheritdoc/>
public List<string> CheckDirectoryPath(string path, List<string>? files)
{
var matchers = new List<PathMatchSet>
{
new(new FilePathMatch("yuPlay.exe"), "yuPlay Launcher"),
};
return MatchUtil.GetAllMatches(files, matchers, any: false);
}
/// <inheritdoc/>
public string? CheckFilePath(string path)
{
var matchers = new List<PathMatchSet>
{
new(new FilePathMatch("yuPlay.exe"), "yuPlay Launcher"),
};
return MatchUtil.GetFirstMatch(path, matchers, any: true);
}
}
}

View File

@@ -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