Trim leading file paths for XBONE (fixes #394)

This commit is contained in:
Matt Nadareski
2022-07-25 09:38:02 -07:00
parent d3ae372903
commit d6be0a4154
2 changed files with 5 additions and 1 deletions

View File

@@ -98,6 +98,7 @@
- Update to DIC 20220707
- Fix .bin file paths; update internal filename generation
- Disable nonstandard BD-ROM sizes
- Trim leading file paths for XBONE
### 2.3 (2022-02-05)
- Start overhauling Redump information pulling, again

View File

@@ -315,7 +315,10 @@ namespace MPF.Library
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));
{
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.Filename] = string.Join("\n",
Directory.GetFiles(xboxOneMsxcPath, "*", SearchOption.TopDirectoryOnly).Select(Path.GetFileName));
}
break;