Add matcher for anti-mod string search

This commit is contained in:
Matt Nadareski
2021-03-25 18:48:19 -07:00
parent 4842bdd38b
commit 2d19d51bc7
2 changed files with 14 additions and 0 deletions

View File

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

View File

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