Allow for output folder argument, bump version
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<Version>0.3.2</Version>
|
<Version>0.3.3</Version>
|
||||||
|
|
||||||
<!-- Package Properties -->
|
<!-- Package Properties -->
|
||||||
<Authors>Deterous</Authors>
|
<Authors>Deterous</Authors>
|
||||||
|
|||||||
@@ -668,7 +668,13 @@ namespace IRDKit
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Determine IRD path if only folder given
|
||||||
|
if (Directory.Exists(irdPath))
|
||||||
|
irdPath = Path.Combine(irdPath, Path.GetFileName(Path.ChangeExtension(isoPath, ".ird")));
|
||||||
|
|
||||||
// Determine IRD path if none given
|
// Determine IRD path if none given
|
||||||
|
if (irdPath == string.Empty)
|
||||||
|
irdPath = Path.GetFileName(Path.ChangeExtension(isoPath, ".ird"));
|
||||||
irdPath ??= Path.ChangeExtension(isoPath, ".ird");
|
irdPath ??= Path.ChangeExtension(isoPath, ".ird");
|
||||||
|
|
||||||
// Create new reproducible redump-style IRD with a given hex key
|
// Create new reproducible redump-style IRD with a given hex key
|
||||||
|
|||||||
+1
-1
@@ -721,7 +721,7 @@ namespace LibIRD
|
|||||||
HashFiles(fs, reader, rootDir);
|
HashFiles(fs, reader, rootDir);
|
||||||
if (FileCount != fileCount)
|
if (FileCount != fileCount)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"{isoPath} contains splits files: detected {FileCount} out of {fileCount} expected files");
|
Console.WriteLine($"{isoPath} contains split files: detected {FileCount} out of {fileCount} expected files");
|
||||||
long[] tempFileKeys = FileKeys;
|
long[] tempFileKeys = FileKeys;
|
||||||
Array.Resize(ref tempFileKeys, (int)FileCount);
|
Array.Resize(ref tempFileKeys, (int)FileCount);
|
||||||
FileKeys = tempFileKeys;
|
FileKeys = tempFileKeys;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<Version>0.3.2</Version>
|
<Version>0.3.3</Version>
|
||||||
|
|
||||||
<!-- Package Properties -->
|
<!-- Package Properties -->
|
||||||
<Authors>Deterous</Authors>
|
<Authors>Deterous</Authors>
|
||||||
|
|||||||
Reference in New Issue
Block a user