mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[NcaProcess] Properly process HashType_None
This commit is contained in:
parent
1e81318d54
commit
06b75b41cf
1 changed files with 2 additions and 0 deletions
|
@ -372,6 +372,8 @@ void nstool::NcaProcess::generatePartitionConfiguration()
|
||||||
switch (info.hash_type)
|
switch (info.hash_type)
|
||||||
{
|
{
|
||||||
case (pie::hac::nca::HashType_None):
|
case (pie::hac::nca::HashType_None):
|
||||||
|
// no hash layer, do nothing
|
||||||
|
info.reader = info.decrypt_reader;
|
||||||
break;
|
break;
|
||||||
case (pie::hac::nca::HashType_HierarchicalSha256):
|
case (pie::hac::nca::HashType_HierarchicalSha256):
|
||||||
info.reader = std::make_shared<pie::hac::HierarchicalSha256Stream>(pie::hac::HierarchicalSha256Stream(info.decrypt_reader, info.hierarchicalsha256_hdr));
|
info.reader = std::make_shared<pie::hac::HierarchicalSha256Stream>(pie::hac::HierarchicalSha256Stream(info.decrypt_reader, info.hierarchicalsha256_hdr));
|
||||||
|
|
Loading…
Reference in a new issue