Subsume used DiscUtils libraries

This commit is contained in:
Deterous
2024-03-05 12:01:25 +09:00
parent 1fa7380f06
commit 55cab8202d
7 changed files with 29 additions and 59 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
using DiscUtils.Iso9660;
using System;
using System;
using System.IO;
using System.IO.Hashing;
@@ -135,7 +134,7 @@ namespace LibIRD
{
// If no layerbreak provided, ensure ISO is not BD-Video hybrid
using FileStream fs = new FileStream(isoPath, FileMode.Open, FileAccess.Read) ?? throw new FileNotFoundException(isoPath);
CDReader reader = new(fs, true, true);
DiscUtils.Iso9660.CDReader reader = new(fs, true, true);
if (reader.DirectoryExists("\\BDMV"))
throw new ArgumentException("Layerbreak must be provided for BD-Video hybrid discs");
// Assume disc has default layerbreak