mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-03 21:29:27 +00:00
Path scan after image scan
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user