More refactor going on

This commit is contained in:
Pengfei
2021-08-04 11:25:39 +08:00
parent 0abddb7e79
commit 1fe45d890c
13 changed files with 55 additions and 54 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ bool CIABuilder::AddContent(u16 content_id, NCCHContainer& ncch) {
const bool is_encrypted = static_cast<u16>(tmd_chunk.type) & 0x01;
// For encrypted content, the hashes are calculated before CIA/CDN encryption.
// So we have to add hash calculation to the CryptoFunc of the QuickDecryptor.
// So we have to add hash calculation to the CryptoFunc of the FileDecryptor.
// For unencrypted content, we can just use HashedFile's hashing.
std::shared_ptr<CIAEncryptAndHash> crypto;
if (is_encrypted) {