LibHac/libhac/Program.cs

22 lines
599 B
C#
Raw Normal View History

2018-06-20 19:42:56 +02:00
using System.IO;
2018-06-16 19:11:38 +02:00
namespace libhac
{
class Program
{
static void Main(string[] args)
{
2018-06-20 19:42:56 +02:00
var keyset = ExternalKeys.ReadKeyFile(args[0]);
keyset.SetSdSeed(args[1].ToBytes());
var nax0 = new Nax0(keyset, args[2], args[3]);
using (var output = new FileStream(args[4], FileMode.Create))
using (var progress = new ProgressBar())
{
progress.LogMessage($"Writing {args[4]}");
Util.CopyStream(nax0.Stream, output, nax0.Stream.Length, progress);
}
2018-06-16 19:11:38 +02:00
}
}
}