mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Add matcher for anti-mod string search
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
- Program output to log by default, setting otherwise
|
||||
- DVDs and BDs can have label-side data
|
||||
- Remove .NET Framework 4.7.2 support
|
||||
- Make logging window a bit safer
|
||||
|
||||
### 1.18 (2020-11-10)
|
||||
- Add more information extraction and generation for Aaru
|
||||
|
||||
@@ -175,6 +175,19 @@ namespace MPF.UserControls
|
||||
}
|
||||
}));
|
||||
|
||||
_matchers.Add(new Matcher(
|
||||
"Scanning sector for anti-mod string (LBA)",
|
||||
DiscImageCreatorProgressPattern,
|
||||
match =>
|
||||
{
|
||||
if (UInt32.TryParse(match.Groups[1].Value, out uint current) && UInt32.TryParse(match.Groups[2].Value, out uint total))
|
||||
{
|
||||
float percentProgress = (current / (float)total) * 100;
|
||||
ProgressBar.Value = percentProgress;
|
||||
ProgressLabel.Text = string.Format("Scanning sectors for anit-mod string... ({0:##.##}%)", percentProgress);
|
||||
}
|
||||
}));
|
||||
|
||||
#endregion
|
||||
|
||||
#region Dumping
|
||||
|
||||
Reference in New Issue
Block a user