From 338f7a00b7ce4ac78d0b0d9d4aec2cb25f7b5431 Mon Sep 17 00:00:00 2001
From: Deterous <138427222+Deterous@users.noreply.github.com>
Date: Thu, 30 Nov 2023 12:51:15 +1300
Subject: [PATCH] Fix issue with manual IRD creation
---
LibIRD/IRD.cs | 5 ++---
LibIRD/ReIRD.cs | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/LibIRD/IRD.cs b/LibIRD/IRD.cs
index f5ae787..0cb3ff6 100644
--- a/LibIRD/IRD.cs
+++ b/LibIRD/IRD.cs
@@ -365,13 +365,12 @@ namespace LibIRD
/// Disc Key, byte array of length 16
/// Disc ID, byte array of length 16
/// Disc PIC, byte array of length 115
- /// True if redump-style IRD
+ /// True if redump-style IRD (default: false)
public IRD(string isoPath, byte[] discKey, byte[] discID, byte[] discPIC, bool redump = false)
{
// Parse ISO, Disc Key, Disc ID, and PIC
DiscKey = discKey;
- GenerateD1(discKey);
- GenerateD2(discID);
+ DiscID = discID;
PIC = discPIC;
// Generate IRD files from ISO
diff --git a/LibIRD/ReIRD.cs b/LibIRD/ReIRD.cs
index a6d2b8c..be742fe 100644
--- a/LibIRD/ReIRD.cs
+++ b/LibIRD/ReIRD.cs
@@ -95,7 +95,7 @@ namespace LibIRD
/// Disc Key, redump-style (AES encrypted Data 1)
/// Layerbreak value, in sectors
/// Disc Region
- public ReIRD(string isoPath, byte[] key, long? layerbreak = null, Region region = Region.NONE)
+ public ReIRD(string isoPath, byte[] key, long? layerbreak = null, Region region = Region.NONE) : base()
{
// Generate Unique Identifier using ISO CRC32
UID = GenerateUID(isoPath);