Use a trimmed DiscUtils

This commit is contained in:
Deterous
2024-03-05 23:34:38 +09:00
parent e8f4d88711
commit 1886e14a9b
4 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -292,7 +292,7 @@ namespace IRDKit
{
PrintISO(file, opt.Json, file.Equals(lastISO), opt.OutPath);
}
catch (LibIRD.DiscUtils.InvalidFileSystemException)
catch (IOException)
{
// Not a valid ISO file despite extension, assume file is an IRD
if (!opt.Json)
@@ -473,7 +473,7 @@ namespace IRDKit
PrintISO(inPath, json, single, outPath);
return;
}
catch (LibIRD.DiscUtils.InvalidFileSystemException)
catch (IOException)
{
// Not a valid ISO file despite extension, try open as IRD
}
@@ -529,7 +529,7 @@ namespace IRDKit
return;
}
// Create new ISO reader
using LibIRD.DiscUtils.Iso9660.CDReader reader = new(fs, true, true);
using LibIRD.DiscUtils.Iso9660.CDReader reader = new(fs);
// Write PS3_DISC.SFB info
try