mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
75 lines
1.8 KiB
C#
75 lines
1.8 KiB
C#
using LibHac;
|
|
|
|
namespace hactoolnet
|
|
{
|
|
internal class Options
|
|
{
|
|
public bool RunCustom;
|
|
public string InFile;
|
|
public FileType InFileType = FileType.Nca;
|
|
public bool Raw;
|
|
public bool Validate;
|
|
public bool EnableHash;
|
|
public string Keyfile;
|
|
public string TitleKeyFile;
|
|
public string ConsoleKeyFile;
|
|
public string[] SectionOut = new string[4];
|
|
public string[] SectionOutDir = new string[4];
|
|
public string ExefsOut;
|
|
public string ExefsOutDir;
|
|
public string RomfsOut;
|
|
public string RomfsOutDir;
|
|
public string DebugOutDir;
|
|
public string SaveOutDir;
|
|
public string OutDir;
|
|
public string SdSeed;
|
|
public string NspOut;
|
|
public string SdPath;
|
|
public string BaseNca;
|
|
public string RootDir;
|
|
public string UpdateDir;
|
|
public string NormalDir;
|
|
public string SecureDir;
|
|
public string LogoDir;
|
|
public bool ListApps;
|
|
public bool ListTitles;
|
|
public bool ListRomFs;
|
|
public bool ListFiles;
|
|
public bool SignSave;
|
|
public ulong TitleId;
|
|
|
|
public IntegrityCheckLevel IntegrityLevel
|
|
{
|
|
get
|
|
{
|
|
if (Validate) return IntegrityCheckLevel.IgnoreOnInvalid;
|
|
if (EnableHash) return IntegrityCheckLevel.ErrorOnInvalid;
|
|
return IntegrityCheckLevel.None;
|
|
}
|
|
}
|
|
}
|
|
|
|
internal enum FileType
|
|
{
|
|
Nca,
|
|
Pfs0,
|
|
Nsp,
|
|
Romfs,
|
|
Nax0,
|
|
Xci,
|
|
SwitchFs,
|
|
Save,
|
|
Keygen,
|
|
Pk11,
|
|
Pk21,
|
|
Kip1,
|
|
Ini1
|
|
}
|
|
|
|
internal class Context
|
|
{
|
|
public Options Options;
|
|
public Keyset Keyset;
|
|
public IProgressReport Logger;
|
|
}
|
|
}
|