mirror of
https://gitea.tendokyu.moe/beerpsi/CHUNITHM-Patch-Finder.git
synced 2024-11-23 23:31:03 +01:00
Say which signatures failed if a patch is not found
This commit is contained in:
parent
7d4951e529
commit
8f3258e39d
@ -40,10 +40,11 @@ foreach (var patch in patches)
|
||||
.Zip(scanner.FindPatternsCached(signatures)!)
|
||||
.GroupBy(p => p.First)
|
||||
.ToDictionary(g => g.Key, g => g.First().Second);
|
||||
var nonMatches = matches.Where(p => !p.Value.Found).ToList();
|
||||
|
||||
if (matches.Any(p => !p.Value.Found))
|
||||
if (nonMatches.Count > 0)
|
||||
{
|
||||
Console.WriteLine($"No offset found for patch {patch.Name}");
|
||||
Console.WriteLine($"No offset found for patch {patch.Name}, signatures {string.Join(",", nonMatches.Select(p => p.Key))}");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -4,6 +4,8 @@ A shittily written patch finder hacked together with
|
||||
Originally written for CHUNITHM, hence the name, but can be used
|
||||
with pretty much anything as long as you have the signatures.
|
||||
|
||||
Does not do any patch validation for now.
|
||||
|
||||
## Usage
|
||||
```sh
|
||||
./CHUNITHM-Patch-Finder <PATH TO EXE>
|
||||
|
Loading…
Reference in New Issue
Block a user