Path scan after image scan

This commit is contained in:
Matt Nadareski
2025-11-10 19:34:17 -05:00
parent 2f0471d596
commit a877397fe6
2 changed files with 8 additions and 4 deletions

View File

@@ -68,6 +68,7 @@
- Scan disc image if not multi-track
- Scan multi-track images for protection
- Move and rename new protection scan method
- Path scan after image scan
### 3.5.0 (2025-10-10)

View File

@@ -81,10 +81,6 @@ namespace MPF.Frontend.Tools
// Setup the output protections dictionary
Dictionary<string, List<string>> protections = [];
// Scan the mounted drive path
if (drive?.Name != null)
protections = await RunProtectionScanOnPath(drive.Name, options, protectionProgress);
// Scan the disc image, if possible
if (File.Exists($"{basePath}.iso"))
{
@@ -125,6 +121,13 @@ namespace MPF.Frontend.Tools
}
}
// Scan the mounted drive path
if (drive?.Name != null)
{
var driveProtections = await RunProtectionScanOnPath(drive.Name, options, protectionProgress);
MergeDictionaries(protections, driveProtections);
}
return protections;
}