diff --git a/CHANGELIST.md b/CHANGELIST.md index 63f83a11..285d30a3 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -2,6 +2,7 @@ - Update Redumper to build 325 - Fix CleanRip not pulling info (Deterous) +- Fix XboxOne/XboxSX Filename bug (Deterous) ### 3.1.8 (2024-05-09) diff --git a/MPF.Core/SubmissionInfoTool.cs b/MPF.Core/SubmissionInfoTool.cs index f5e7cbd6..43a258a0 100644 --- a/MPF.Core/SubmissionInfoTool.cs +++ b/MPF.Core/SubmissionInfoTool.cs @@ -378,7 +378,7 @@ namespace MPF.Core string xboxOneMsxcPath = Path.Combine(drive.Name, "MSXC"); if (drive != null && Directory.Exists(xboxOneMsxcPath)) { - info.CommonDiscInfo!.CommentsSpecialFields![SiteCode.Filename] ??= string.Join("\n", + info.CommonDiscInfo!.CommentsSpecialFields![SiteCode.Filename] = string.Join("\n", Directory.GetFiles(xboxOneMsxcPath, "*", SearchOption.TopDirectoryOnly).Select(Path.GetFileName).ToArray()); } } @@ -391,7 +391,7 @@ namespace MPF.Core string xboxSeriesXMsxcPath = Path.Combine(drive.Name, "MSXC"); if (drive != null && Directory.Exists(xboxSeriesXMsxcPath)) { - info.CommonDiscInfo!.CommentsSpecialFields![SiteCode.Filename] ??= string.Join("\n", + info.CommonDiscInfo!.CommentsSpecialFields![SiteCode.Filename] = string.Join("\n", Directory.GetFiles(xboxSeriesXMsxcPath, "*", SearchOption.TopDirectoryOnly).Select(Path.GetFileName).ToArray()); } }