2018-07-02 22:12:41 +02:00
|
|
|
|
using libhac;
|
|
|
|
|
|
|
|
|
|
namespace hactoolnet
|
|
|
|
|
{
|
|
|
|
|
internal class Options
|
|
|
|
|
{
|
2018-07-05 23:37:30 +02:00
|
|
|
|
public bool RunCustom;
|
2018-07-02 22:12:41 +02:00
|
|
|
|
public string InFile;
|
|
|
|
|
public FileType InFileType = FileType.Nca;
|
2018-07-05 23:37:30 +02:00
|
|
|
|
public bool Raw;
|
|
|
|
|
public bool Validate;
|
2018-07-02 22:12:41 +02:00
|
|
|
|
public string Keyfile;
|
|
|
|
|
public string TitleKeyFile;
|
2018-07-09 18:47:32 +02:00
|
|
|
|
public string ConsoleKeyFile;
|
2018-07-02 22:12:41 +02:00
|
|
|
|
public string[] SectionOut = new string[4];
|
|
|
|
|
public string[] SectionOutDir = new string[4];
|
|
|
|
|
public string ExefsOut;
|
|
|
|
|
public string ExefsOutDir;
|
|
|
|
|
public string RomfsOut;
|
|
|
|
|
public string RomfsOutDir;
|
2018-07-24 21:51:52 +02:00
|
|
|
|
public string DebugOutDir;
|
2018-07-02 22:12:41 +02:00
|
|
|
|
public string OutDir;
|
|
|
|
|
public string SdSeed;
|
2018-08-03 05:14:58 +02:00
|
|
|
|
public string NspOut;
|
2018-07-02 22:12:41 +02:00
|
|
|
|
public string SdPath;
|
2018-07-07 22:45:06 +02:00
|
|
|
|
public string BaseNca;
|
2018-07-03 04:21:35 +02:00
|
|
|
|
public bool ListApps;
|
|
|
|
|
public bool ListTitles;
|
|
|
|
|
public bool ListRomFs;
|
|
|
|
|
public ulong TitleId;
|
2018-07-02 22:12:41 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal enum FileType
|
|
|
|
|
{
|
|
|
|
|
Nca,
|
|
|
|
|
Pfs0,
|
|
|
|
|
Romfs,
|
|
|
|
|
Nax0,
|
2018-08-12 22:45:10 +02:00
|
|
|
|
Xci,
|
2018-07-20 01:31:35 +02:00
|
|
|
|
SwitchFs,
|
|
|
|
|
Save
|
2018-07-02 22:12:41 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal class Context
|
|
|
|
|
{
|
|
|
|
|
public Options Options;
|
|
|
|
|
public Keyset Keyset;
|
|
|
|
|
public IProgressReport Logger;
|
|
|
|
|
}
|
|
|
|
|
}
|