summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-20 00:37:58 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-20 00:37:58 +0200
commit0aef2b9c26fddf40b5f5283ba846f3415c5a65a1 (patch)
tree25fa10971f64d8e18a5c712e22789aefab6bb26e
parentMerge pull request #1525 from ogniK5377/block-home (diff)
downloadyuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.tar
yuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.tar.gz
yuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.tar.bz2
yuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.tar.lz
yuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.tar.xz
yuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.tar.zst
yuzu-0aef2b9c26fddf40b5f5283ba846f3415c5a65a1.zip
-rw-r--r--src/core/crypto/partition_data_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/crypto/partition_data_manager.cpp b/src/core/crypto/partition_data_manager.cpp
index 25cee1f3a..ed0775444 100644
--- a/src/core/crypto/partition_data_manager.cpp
+++ b/src/core/crypto/partition_data_manager.cpp
@@ -516,7 +516,8 @@ void PartitionDataManager::DecryptPackage2(const std::array<Key128, 0x20>& packa
out.insert(out.end(), rodata.begin(), rodata.end());
out.insert(out.end(), data.begin(), data.end());
- offset += sizeof(KIPHeader) + out.size();
+ offset += sizeof(KIPHeader) + kip.sections[0].size_compressed +
+ kip.sections[1].size_compressed + kip.sections[2].size_compressed;
if (name == "FS")
package2_fs[static_cast<size_t>(type)] = std::move(out);