Reuse ISO hash if searching redump
This commit is contained in:
+1
-1
@@ -270,7 +270,7 @@ namespace LibIRD
|
||||
/// <summary>
|
||||
/// MD5 hashes for all decrypted files in the image
|
||||
/// </summary>
|
||||
/// <remarks><see cref="FileHashes"/> files, 16-bytes per hash, alternating with each <see cref="FileHashes"/> entry</remarks>
|
||||
/// <remarks><see cref="FileCount"/> files, 16-bytes per hash, alternating with each <see cref="FileHashes"/> entry</remarks>
|
||||
public byte[][] FileHashes { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
+3
-2
@@ -71,11 +71,12 @@ namespace LibIRD
|
||||
/// <param name="isoPath">Path to the ISO</param>
|
||||
/// <param name="key">Disc Key, redump-style (AES encrypted Data 1)</param>
|
||||
/// <param name="layerbreak">Layerbreak value, in sectors</param>
|
||||
/// <param name="uid">Unique ID, crc32 hash of ISO</param>
|
||||
/// <param name="region">Disc Region</param>
|
||||
public ReIRD(string isoPath, byte[] key, long? layerbreak = null, Region region = Region.NONE) : base()
|
||||
public ReIRD(string isoPath, byte[] key, long? layerbreak = null, uint? uid = null, Region region = Region.NONE) : base()
|
||||
{
|
||||
// Generate Unique Identifier using ISO CRC32
|
||||
UID = GenerateUID(isoPath);
|
||||
UID = uid == null ? GenerateUID(isoPath) : (uint)uid;
|
||||
|
||||
// Determine ISO file size
|
||||
long size = CalculateSize(isoPath);
|
||||
|
||||
Reference in New Issue
Block a user