Separate BEE

This commit is contained in:
Matt Nadareski
2026-04-30 13:54:38 -04:00
parent f95d6095d1
commit eb7843f282
3 changed files with 10 additions and 5 deletions

View File

@@ -13,6 +13,7 @@
- Fix name conflict
- Sync with Redump wiki
- Add BD protection info, fix Cover ID setting
- Separate BEE
### 3.7.1 (2026-03-30)

View File

@@ -132,9 +132,6 @@ namespace MPF.Frontend.Tools
if (File.Exists(unitKeyPath))
unitKeyFileHash = HashTool.GetFileHash(unitKeyPath, HashType.SHA1)?.ToUpperInvariant();
// Determine if BEE is set
bool busEncryptionEnabled = GetBusEncryptionEnabled(drive);
// Generate the output strings
var sb = new StringBuilder();
@@ -142,8 +139,6 @@ namespace MPF.Frontend.Tools
sb.AppendLine($"Volume ID: (OPTIONAL)");
sb.AppendLine($"Volume Unique Key: (OPTIONAL)");
sb.AppendLine($"Unit Key File Hash (DiscID): {unitKeyFileHash ?? "(OPTIONAL)"}");
if (busEncryptionEnabled)
sb.AppendLine("Bus encryption enabled flag set");
return sb.ToString();
}

View File

@@ -834,6 +834,8 @@ namespace MPF.Frontend.Tools
case RedumpSystem.BDVideo:
info.CommonDiscInfo.Category ??= DiscCategory.Video;
// General protection info
string? bdProtection = PhysicalTool.GetBluRayProtection(drive);
if (bdProtection is not null && string.IsNullOrEmpty(info.CopyProtection.Protection))
info.CopyProtection.Protection = bdProtection;
@@ -842,6 +844,13 @@ namespace MPF.Frontend.Tools
else
info.CopyProtection.Protection ??= addPlaceholders ? RequiredIfExistsValue : string.Empty;
// Determine if BEE is set
bool busEncryptionEnabled = PhysicalTool.GetBusEncryptionEnabled(drive);
if (busEncryptionEnabled && !info.CommonDiscInfo.CommentsSpecialFields.ContainsKey(SiteCode.Protection))
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.Protection] = "Bus Encryption Enabled";
else if (busEncryptionEnabled && info.CommonDiscInfo.CommentsSpecialFields.ContainsKey(SiteCode.Protection))
info.CopyProtection.Protection += $"\nBus Encryption Enabled";
break;
case RedumpSystem.DVDVideo: