From 06b75b41cfeb887684b1c2cad399e7d9373d1907 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 21 Jan 2023 20:10:01 +0800 Subject: [PATCH] [NcaProcess] Properly process HashType_None --- src/NcaProcess.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NcaProcess.cpp b/src/NcaProcess.cpp index a88ff84..48d84e3 100644 --- a/src/NcaProcess.cpp +++ b/src/NcaProcess.cpp @@ -372,6 +372,8 @@ void nstool::NcaProcess::generatePartitionConfiguration() switch (info.hash_type) { case (pie::hac::nca::HashType_None): + // no hash layer, do nothing + info.reader = info.decrypt_reader; break; case (pie::hac::nca::HashType_HierarchicalSha256): info.reader = std::make_shared(pie::hac::HierarchicalSha256Stream(info.decrypt_reader, info.hierarchicalsha256_hdr));