mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Separate BEE
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user