This commit is contained in:
Deterous
2023-11-01 17:48:40 +13:00
parent 743f3210a3
commit fd18b425d1
5 changed files with 128 additions and 140 deletions
+11 -3
View File
@@ -1,5 +1,6 @@
using LibIRD;
using System;
using System.Text;
namespace BuildIRD
{
@@ -7,12 +8,19 @@ namespace BuildIRD
{
static void Main()
{
byte[] discKey = new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
Console.OutputEncoding = Encoding.UTF8;
// Create new reproducible redump-style IRD with a key
byte[] discKey = new byte[] { 0x1A, 0x2D, 0x88, 0xFC, 0x19, 0x37, 0x27, 0x44, 0x11, 0x5E, 0xE9, 0x83, 0xA0, 0x47, 0xE2, 0xD5 };
IRD ird1 = new ReIRD("./game.iso", discKey);
IRD ird2 = new ReIRD("./game.iso", "./log.getkey.log");
ird1.Write("./test1.ird");
Console.WriteLine("IRD for " + ird1.Title + " created");
// Create new reproducible redump-style IRD with a GetKey log
string logPath = "./log.getkey.log";
IRD ird2 = new ReIRD("./game.iso", logPath);
ird2.Write("./test2.ird");
Console.WriteLine(ird1.Title);
Console.WriteLine("IRD for " + ird2.Title + " created");
}
}
}