Even stricter output for copy protection section

This commit is contained in:
Matt Nadareski
2022-04-04 22:25:07 -07:00
parent 84410056bd
commit 9a5feee095
2 changed files with 4 additions and 2 deletions

View File

@@ -38,6 +38,7 @@
- Increase JSON accuracy for disc types
- Further separate out protection scan outputs
- Compress JSON for artifacts alone
- Even stricter output for copy protection section
### 2.3 (2022-02-05)
- Start overhauling Redump information pulling, again

View File

@@ -764,10 +764,11 @@ namespace MPF.Library
}
// Copy Protection section
if (!string.IsNullOrEmpty(info.CopyProtection.Protection)
if (!string.IsNullOrWhiteSpace(info.CopyProtection.Protection)
|| info.CopyProtection.AntiModchip != YesNo.NULL
|| info.CopyProtection.LibCrypt != YesNo.NULL
|| info.CopyProtection.SecuROMData != null)
|| !string.IsNullOrWhiteSpace(info.CopyProtection.LibCryptData)
|| !string.IsNullOrWhiteSpace(info.CopyProtection.SecuROMData))
{
output.Add(""); output.Add("Copy Protection:");
if (info.CommonDiscInfo.System == RedumpSystem.SonyPlayStation)