mirror of
https://github.com/jakcron/nstool
synced 2024-11-14 17:56:39 +00:00
Fixed XCI Header Hey selection.
This commit is contained in:
parent
87459b6f8d
commit
390b544059
2 changed files with 2 additions and 2 deletions
2
deps/libpietendo
vendored
2
deps/libpietendo
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 3c68ffeeb903d286647823ea1676d1cb7ede939b
|
Subproject commit 89204ee499bfb3e4d1017c4a1fe2d29b2e70ff37
|
|
@ -120,7 +120,7 @@ void nstool::GameCardProcess::importHeader()
|
||||||
memcpy(mHdrSignature.data(), hdr_ptr->signature.data(), mHdrSignature.size());
|
memcpy(mHdrSignature.data(), hdr_ptr->signature.data(), mHdrSignature.size());
|
||||||
|
|
||||||
// decrypt extended header
|
// decrypt extended header
|
||||||
byte_t xci_header_key_index = hdr_ptr->header.key_flag & 7;
|
byte_t xci_header_key_index = hdr_ptr->header.key_flag & 0xf;
|
||||||
if (mKeyCfg.xci_header_key.find(xci_header_key_index) != mKeyCfg.xci_header_key.end())
|
if (mKeyCfg.xci_header_key.find(xci_header_key_index) != mKeyCfg.xci_header_key.end())
|
||||||
{
|
{
|
||||||
pie::hac::GameCardUtil::decryptXciHeader(&hdr_ptr->header, mKeyCfg.xci_header_key[xci_header_key_index].data());
|
pie::hac::GameCardUtil::decryptXciHeader(&hdr_ptr->header, mKeyCfg.xci_header_key[xci_header_key_index].data());
|
||||||
|
|
Loading…
Reference in a new issue