mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 02:16:46 +00:00
Confirm existing WinLock checks (#169)
* Confirm existing WinLock checks * Confirm existing WinLock checks. * Add WinLock notes. * Update README. * Rename Winlock.cs to WinLock.cs
This commit is contained in:
committed by
GitHub
parent
2801520546
commit
fdd578dad9
45
BurnOutSharp/ProtectionType/WinLock.cs
Normal file
45
BurnOutSharp/ProtectionType/WinLock.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using BurnOutSharp.Interfaces;
|
||||
using BurnOutSharp.Matching;
|
||||
|
||||
namespace BurnOutSharp.ProtectionType
|
||||
{
|
||||
/// <summary>
|
||||
/// WinLock (by B16MCC) is a program that allows the user to create a CD-R with intentional errors.
|
||||
/// It does this by modifying an existing cuesheet to include 3 additional tracks that wiould be created from the file "WinLock.PSX".
|
||||
/// It then allows the user to automatically modify that file while the CD-R is being burnt, causing there to be errors at the end of the disc.
|
||||
/// Note that no additional files are written to the disc itself, the additional tracks created are invalid.
|
||||
/// Based on the included "WinLock.txt", this is intended specifically for PSX discs.
|
||||
/// The website appears to have relied heavily on Java, none of which appears to be archived online (https://web.archive.org/web/20010221030118/http://www.diamondcdroms.co.uk:80/).
|
||||
/// Download: https://cmw.mobiletarget.net/?f=winlock.zip.
|
||||
/// https://www.cdmediaworld.com/hardware/cdrom/cd_news_0001.shtml
|
||||
/// Doesn't appear to be related to https://www.crystaloffice.com/winlock/.
|
||||
/// </summary>
|
||||
public class WinLock : IPathCheck
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public ConcurrentQueue<string> CheckDirectoryPath(string path, IEnumerable<string> files)
|
||||
{
|
||||
var matchers = new List<PathMatchSet>
|
||||
{
|
||||
// This is the temporary dummy file created in the C: drive.
|
||||
new PathMatchSet(new PathMatch("WinLock.PSX", useEndsWith: true), "WinLock"),
|
||||
};
|
||||
|
||||
return MatchUtil.GetAllMatches(files, matchers, any: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public string CheckFilePath(string path)
|
||||
{
|
||||
var matchers = new List<PathMatchSet>
|
||||
{
|
||||
// This is the temporary dummy file created in the C: drive.
|
||||
new PathMatchSet(new PathMatch("WinLock.PSX", useEndsWith: true), "WinLock"),
|
||||
};
|
||||
|
||||
return MatchUtil.GetFirstMatch(path, matchers, any: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using BurnOutSharp.Interfaces;
|
||||
using BurnOutSharp.Matching;
|
||||
|
||||
namespace BurnOutSharp.ProtectionType
|
||||
{
|
||||
public class Winlock : IPathCheck
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public ConcurrentQueue<string> CheckDirectoryPath(string path, IEnumerable<string> files)
|
||||
{
|
||||
var matchers = new List<PathMatchSet>
|
||||
{
|
||||
new PathMatchSet(new PathMatch("WinLock.PSX", useEndsWith: true), "Winlock (Unconfirmed - Please report to us on Github)"),
|
||||
};
|
||||
|
||||
return MatchUtil.GetAllMatches(files, matchers, any: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public string CheckFilePath(string path)
|
||||
{
|
||||
var matchers = new List<PathMatchSet>
|
||||
{
|
||||
new PathMatchSet(new PathMatch("WinLock.PSX", useEndsWith: true), "Winlock (Unconfirmed - Please report to us on Github)"),
|
||||
};
|
||||
|
||||
return MatchUtil.GetFirstMatch(path, matchers, any: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ Below is a list of protections detected by BurnOutSharp. The two columns explain
|
||||
| TZCopyProtection | False | True | Partially unconfirmed² |
|
||||
| Uplay | True | True | |
|
||||
| Windows Media Data Session DRM | True | True | |
|
||||
| Winlock | False | True | Unconfirmed¹ |
|
||||
| Winlock | False | True | |
|
||||
| WTM CD Protect | True | True | |
|
||||
| XCP | True | True | |
|
||||
| Zzxzz | False | True | |
|
||||
|
||||
Reference in New Issue
Block a user