mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Read CSS for some copy protections (fixes #608)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
### WIP (xxxx-xx-xx)
|
||||
|
||||
- Read CSS for some copy protections
|
||||
|
||||
### 3.0.1 (2023-11-30)
|
||||
|
||||
- Add Bandai Pippin detection
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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!"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user