From f9efa71fcc481f754eedff0d8b87e2e75f8e7466 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 2 Aug 2020 22:00:07 -0700 Subject: [PATCH] Better categorization --- DICUI.Library/Utilities/DumpEnvironment.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DICUI.Library/Utilities/DumpEnvironment.cs b/DICUI.Library/Utilities/DumpEnvironment.cs index f5c857c9..9d2fbec0 100644 --- a/DICUI.Library/Utilities/DumpEnvironment.cs +++ b/DICUI.Library/Utilities/DumpEnvironment.cs @@ -663,7 +663,7 @@ namespace DICUI.Utilities ForeignTitleNonLatin = (AddPlaceholders ? Template.OptionalValue : ""), DiscNumberLetter = (AddPlaceholders ? Template.OptionalValue : ""), DiscTitle = (AddPlaceholders ? Template.OptionalValue : ""), - Category = DiscCategory.Games, + Category = null, Region = null, Languages = null, Serial = (AddPlaceholders ? Template.RequiredIfExistsValue : ""), @@ -946,6 +946,9 @@ namespace DICUI.Utilities break; } + // Set the category if it's not overriden + info.CommonDiscInfo.Category = info.CommonDiscInfo.Category ?? DiscCategory.Games; + // Comments is one of the few fields with odd handling if (string.IsNullOrEmpty(info.CommonDiscInfo.Comments)) info.CommonDiscInfo.Comments = (AddPlaceholders ? Template.OptionalValue : "");