Ignore volume labels with path separators

This commit is contained in:
Matt Nadareski
2025-06-16 09:26:56 -04:00
parent f9e39ee4be
commit 8ef7543cf1
2 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
- Handle layers for PS3CFW
- Further clarify configuration requirements for CLI
- Ignore volume labels with path separators
### 3.3.2 (2025-06-12)

View File

@@ -459,6 +459,11 @@ namespace MPF.Frontend.Tools
if (driveLabel != null && driveLabel.Length == 0)
driveLabel = null;
// Treat "path" labels as null -- Indicates a mounted path
// This can over-match if a label contains a directory separator somehow
if (driveLabel != null && (driveLabel.Contains("/") || driveLabel.Contains("\\")))
driveLabel = null;
// Must have at least one label to format
if (driveLabel == null && (labels == null || labels.Count == 0))
return null;