2018-08-31 10:47:11 -05:00
|
|
|
|
using LibHac;
|
2018-07-02 15:12:41 -05:00
|
|
|
|
|
|
|
|
|
namespace hactoolnet
|
|
|
|
|
{
|
|
|
|
|
internal class Options
|
|
|
|
|
{
|
2018-07-05 16:37:30 -05:00
|
|
|
|
public bool RunCustom;
|
2018-07-02 15:12:41 -05:00
|
|
|
|
public string InFile;
|
|
|
|
|
public FileType InFileType = FileType.Nca;
|
2018-07-05 16:37:30 -05:00
|
|
|
|
public bool Raw;
|
|
|
|
|
public bool Validate;
|
2018-09-20 16:16:40 -05:00
|
|
|
|
public bool EnableHash;
|
2018-07-02 15:12:41 -05:00
|
|
|
|
public string Keyfile;
|
|
|
|
|
public string TitleKeyFile;
|
2018-07-09 11:47:32 -05:00
|
|
|
|
public string ConsoleKeyFile;
|
2018-07-02 15:12:41 -05: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 14:51:52 -05:00
|
|
|
|
public string DebugOutDir;
|
2018-09-10 22:09:35 -05:00
|
|
|
|
public string SaveOutDir;
|
2018-07-02 15:12:41 -05:00
|
|
|
|
public string OutDir;
|
|
|
|
|
public string SdSeed;
|
2018-08-02 22:14:58 -05:00
|
|
|
|
public string NspOut;
|
2018-07-02 15:12:41 -05:00
|
|
|
|
public string SdPath;
|
2018-07-07 15:45:06 -05:00
|
|
|
|
public string BaseNca;
|
2018-08-14 17:21:07 -06:00
|
|
|
|
public string RootDir;
|
|
|
|
|
public string UpdateDir;
|
|
|
|
|
public string NormalDir;
|
|
|
|
|
public string SecureDir;
|
|
|
|
|
public string LogoDir;
|
2018-07-02 21:21:35 -05:00
|
|
|
|
public bool ListApps;
|
|
|
|
|
public bool ListTitles;
|
|
|
|
|
public bool ListRomFs;
|
2018-09-15 22:31:06 -05:00
|
|
|
|
public bool SignSave;
|
2018-07-02 21:21:35 -05:00
|
|
|
|
public ulong TitleId;
|
2018-07-02 15:12:41 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal enum FileType
|
|
|
|
|
{
|
|
|
|
|
Nca,
|
|
|
|
|
Pfs0,
|
2018-10-03 22:14:23 +02:00
|
|
|
|
Nsp,
|
2018-07-02 15:12:41 -05:00
|
|
|
|
Romfs,
|
|
|
|
|
Nax0,
|
2018-08-12 14:45:10 -06:00
|
|
|
|
Xci,
|
2018-07-19 18:31:35 -05:00
|
|
|
|
SwitchFs,
|
2018-08-27 17:40:06 -05:00
|
|
|
|
Save,
|
2018-09-12 19:51:21 -05:00
|
|
|
|
Keygen,
|
2018-09-16 20:26:16 -05:00
|
|
|
|
Pk11,
|
2018-09-17 19:18:28 -05:00
|
|
|
|
Pk21,
|
2018-09-17 19:52:22 -05:00
|
|
|
|
Kip1,
|
|
|
|
|
Ini1
|
2018-07-02 15:12:41 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal class Context
|
|
|
|
|
{
|
|
|
|
|
public Options Options;
|
|
|
|
|
public Keyset Keyset;
|
|
|
|
|
public IProgressReport Logger;
|
|
|
|
|
}
|
|
|
|
|
}
|