From 9a5feee095a703adf046cb5a1121a8f5f759d36e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 4 Apr 2022 22:25:07 -0700 Subject: [PATCH] Even stricter output for copy protection section --- CHANGELIST.md | 1 + MPF.Library/InfoTool.cs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index f6993dd7..98a31d92 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -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 diff --git a/MPF.Library/InfoTool.cs b/MPF.Library/InfoTool.cs index 22b9a276..aea812bf 100644 --- a/MPF.Library/InfoTool.cs +++ b/MPF.Library/InfoTool.cs @@ -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)