Add Xbox One system detection (fixes #368)

This commit is contained in:
Matt Nadareski
2022-02-24 11:22:04 -08:00
parent aee1c05a45
commit bcbf5daf0d
2 changed files with 12 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
- Move path normalization to better place
- Specifically include Unsafe Nuget package
- Update Nuget packages to newest stable
- Add Xbox One system detection
### 2.3 (2022-02-05)
- Start overhauling Redump information pulling, again

View File

@@ -292,6 +292,17 @@ namespace MPF.Core.Data
}
catch { }
// Microsoft Xbox One
try
{
if (Directory.Exists(Path.Combine(drivePath, "MSXC"))
&& Directory.EnumerateFiles(Path.Combine(drivePath, "MSXC")).Any())
{
return RedumpSystem.MicrosoftXboxOne;
}
}
catch { }
// Sega Dreamcast
if (File.Exists(Path.Combine(drivePath, "IP.BIN")))
{