Skip to content

Commit

Permalink
Detect HD-DVD-Video
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Nov 8, 2020
1 parent 70d30d3 commit 040720a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions DICUI.Library/Utilities/Validators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,13 @@ public static List<Drive> 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")))
{
Expand Down

0 comments on commit 040720a

Please sign in to comment.