Read CSS for some copy protections (fixes #608)

This commit is contained in:
Matt Nadareski
2023-11-29 23:57:58 -05:00
parent 3d7355aee1
commit 79065dcc69
4 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
### WIP (xxxx-xx-xx)
- Read CSS for some copy protections
### 3.0.1 (2023-11-30)
- Add Bandai Pippin detection

View File

@@ -521,6 +521,9 @@ namespace MPF.Core.Modules.DiscImageCreator
info.CopyProtection!.SecuROMData = GetFullFile($"{basePath}_subIntention.txt") ?? string.Empty;
}
// Needed for some odd copy protections
info.CopyProtection!.Protection = GetDVDProtection($"{basePath}_CSSKey.txt", $"{basePath}_disc.txt") ?? string.Empty;
break;
case RedumpSystem.DVDAudio:

View File

@@ -358,6 +358,9 @@ namespace MPF.Core.Modules.Redumper
case RedumpSystem.RainbowDisc:
case RedumpSystem.SonyElectronicBook:
info.CopyProtection!.SecuROMData = GetSecuROMData($"{basePath}.log") ?? string.Empty;
// Needed for some odd copy protections
info.CopyProtection!.Protection = GetDVDProtection($"{basePath}.log") ?? string.Empty;
break;
case RedumpSystem.DVDAudio:

View File

@@ -234,7 +234,7 @@ namespace MPF.Core
resultProgress?.Report(Result.Success("Running copy protection scan... this might take a while!"));
var (protectionString, fullProtections) = await InfoTool.GetCopyProtection(drive, options, protectionProgress);
info.CopyProtection!.Protection = protectionString;
info.CopyProtection!.Protection += protectionString;
info.CopyProtection.FullProtections = fullProtections as Dictionary<string, List<string>?> ?? [];
resultProgress?.Report(Result.Success("Copy protection scan complete!"));