From f2dadae7a3abe5c9188697c8e686d883fcd53ca2 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 12 Mar 2022 21:27:23 -0800 Subject: [PATCH] Add both fully and partially matching to info file --- CHANGELIST.md | 1 + MPF.Core/Data/Constants.cs | 3 ++- MPF.Library/InfoTool.cs | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index a5cecf70..745037cb 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -29,6 +29,7 @@ - Make fully and partially matching IDs more apparent - Add write offset as read-only field - Explicitly clear list, just in case +- Add both fully and partially matching to info file ### 2.3 (2022-02-05) - Start overhauling Redump information pulling, again diff --git a/MPF.Core/Data/Constants.cs b/MPF.Core/Data/Constants.cs index a5a60116..af19a39c 100644 --- a/MPF.Core/Data/Constants.cs +++ b/MPF.Core/Data/Constants.cs @@ -88,7 +88,8 @@ namespace MPF.Core.Data public const string CRC32Field = "CRC32"; public const string MD5Field = "MD5"; public const string SHA1Field = "SHA1"; - public const string MatchingIDsField = "Matching IDs"; + public const string FullyMatchingIDField = "Fully Matching ID"; + public const string PartiallyMatchingIDsField = "Partially Matching IDs"; public const string ErrorCountField = "Error Count"; public const string CuesheetField = "Cuesheet"; public const string SubIntentionField = "SubIntention Data (SecuROM/LibCrypt)"; diff --git a/MPF.Library/InfoTool.cs b/MPF.Library/InfoTool.cs index d3fb7e60..b5cb02ed 100644 --- a/MPF.Library/InfoTool.cs +++ b/MPF.Library/InfoTool.cs @@ -644,7 +644,8 @@ namespace MPF.Library info.SizeAndChecksums.Layerbreak3), 1); AddIfExists(output, Template.CategoryField, info.CommonDiscInfo.Category.LongName(), 1); - AddIfExists(output, Template.MatchingIDsField, info.PartiallyMatchedIDs, 1); + AddIfExists(output, Template.FullyMatchingIDField, info.FullyMatchedID?.ToString(), 1); + AddIfExists(output, Template.PartiallyMatchingIDsField, info.PartiallyMatchedIDs, 1); AddIfExists(output, Template.RegionField, info.CommonDiscInfo.Region.LongName() ?? "SPACE! (CHANGE THIS)", 1); AddIfExists(output, Template.LanguagesField, (info.CommonDiscInfo.Languages ?? new Language?[] { null }).Select(l => l.LongName() ?? "SILENCE! (CHANGE THIS)").ToArray(), 1); AddIfExists(output, Template.PlaystationLanguageSelectionViaField, (info.CommonDiscInfo.LanguageSelection ?? new LanguageSelection?[] { }).Select(l => l.LongName()).ToArray(), 1);