Skip to content

Commit fd6de0d

Browse files
committed
Add yuPlay Launcher detection
1 parent 7604343 commit fd6de0d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Collections.Generic;
2+
using BinaryObjectScanner.Interfaces;
3+
using SabreTools.Matching;
4+
using SabreTools.Matching.Paths;
5+
6+
namespace BinaryObjectScanner.Protection
7+
{
8+
/// <summary>
9+
/// yuPlay Launcher
10+
/// </summary>
11+
public class YuPlay : IPathCheck
12+
{
13+
/// <inheritdoc/>
14+
public List<string> CheckDirectoryPath(string path, List<string>? files)
15+
{
16+
var matchers = new List<PathMatchSet>
17+
{
18+
new(new FilePathMatch("yuPlay.exe"), "yuPlay Launcher"),
19+
};
20+
21+
return MatchUtil.GetAllMatches(files, matchers, any: false);
22+
}
23+
24+
/// <inheritdoc/>
25+
public string? CheckFilePath(string path)
26+
{
27+
var matchers = new List<PathMatchSet>
28+
{
29+
new(new FilePathMatch("yuPlay.exe"), "yuPlay Launcher"),
30+
};
31+
32+
return MatchUtil.GetFirstMatch(path, matchers, any: true);
33+
}
34+
}
35+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Below is a list of protections detected by BinaryObjectScanner. The two columns
131131
| Winlock | False | True | |
132132
| WTM CD Protect | True | True | |
133133
| XCP | True | True | |
134+
| yuPlay Launcher | False | True | |
134135
| Zzxzz | False | True | |
135136

136137
### Notes

0 commit comments

Comments
 (0)