From 5e938791efa5fb1960d90f6f834554775eee37de Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 5 Jul 2022 22:43:28 -0700 Subject: [PATCH] Add files for XBONE (fixes #390) --- MPF.Library/InfoTool.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MPF.Library/InfoTool.cs b/MPF.Library/InfoTool.cs index d23a9757..9d715126 100644 --- a/MPF.Library/InfoTool.cs +++ b/MPF.Library/InfoTool.cs @@ -312,6 +312,13 @@ namespace MPF.Library info.CommonDiscInfo.EXEDateBuildDate = options.AddPlaceholders ? Template.RequiredValue : string.Empty; break; + case RedumpSystem.MicrosoftXboxOne: + string xboxOneMsxcPath = Path.Combine($"{drive.Letter}:\\", "MSXC"); + if (drive != null && Directory.Exists(xboxOneMsxcPath)) + info.CommonDiscInfo.CommentsSpecialFields[SiteCode.Filename] = string.Join("\n", Directory.GetFiles(xboxOneMsxcPath, "*", SearchOption.TopDirectoryOnly)); + + break; + case RedumpSystem.NamcoSegaNintendoTriforce: info.CommonDiscInfo.EXEDateBuildDate = options.AddPlaceholders ? Template.RequiredValue : string.Empty; break; @@ -2023,6 +2030,7 @@ namespace MPF.Library switch (siteCode) { case SiteCode.Extras: + case SiteCode.Filename: case SiteCode.Games: case SiteCode.GameFootage: case SiteCode.Multisession: