From 040720a1c29d710fe30ecb595ee73d39829a469c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 8 Nov 2020 13:40:30 -0800 Subject: [PATCH] Detect HD-DVD-Video --- CHANGELIST.md | 1 + DICUI.Library/Utilities/Validators.cs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index e40632afc..773d263b1 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -20,6 +20,7 @@ - ~~Updated to DIC version 20201101~~ - Add support for `/ps` DIC flag - Updated to BurnOutSharp 1.5.0 +- Added HD-DVD-Video detection ### 1.17.1 (2020-09-14) - Shuffled some shared, internal UI variables diff --git a/DICUI.Library/Utilities/Validators.cs b/DICUI.Library/Utilities/Validators.cs index 6884e37c9..ca7bb3b8b 100644 --- a/DICUI.Library/Utilities/Validators.cs +++ b/DICUI.Library/Utilities/Validators.cs @@ -932,6 +932,13 @@ public static List CreateListOfDrives(bool ignoreFixedDrives) return KnownSystem.DVDVideo; } + // HD-DVD-Video + if (Directory.Exists(Path.Combine(drivePath, "HVDVD_TS")) + && Directory.EnumerateFiles(Path.Combine(drivePath, "HVDVD_TS")).Count() > 0) + { + return KnownSystem.HDDVDVideo; + } + // Sega Dreamcast if (File.Exists(Path.Combine(drivePath, "IP.BIN"))) {