mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Split key file parser utility functions
This commit is contained in:
parent
a27c9f78c7
commit
945fe5aea9
1 changed files with 7 additions and 2 deletions
|
@ -290,12 +290,17 @@ namespace LibHac
|
|||
{
|
||||
var keyset = new Keyset();
|
||||
|
||||
ReadKeyFile(keyset, filename, titleKeysFilename, consoleKeysFilename, logger);
|
||||
|
||||
return keyset;
|
||||
}
|
||||
|
||||
public static void ReadKeyFile(Keyset keyset, string filename, string titleKeysFilename = null, string consoleKeysFilename = null, IProgressReport logger = null)
|
||||
{
|
||||
if (filename != null) ReadMainKeys(keyset, filename, AllKeyDict, logger);
|
||||
if (consoleKeysFilename != null) ReadMainKeys(keyset, consoleKeysFilename, AllKeyDict, logger);
|
||||
if (titleKeysFilename != null) ReadTitleKeys(keyset, titleKeysFilename, logger);
|
||||
keyset.DeriveKeys(logger);
|
||||
|
||||
return keyset;
|
||||
}
|
||||
|
||||
public static void LoadConsoleKeys(this Keyset keyset, string filename, IProgressReport logger = null)
|
||||
|
|
Loading…
Reference in a new issue