From 04a5d03b5f3b0941b4597bf25c20f149388f45fc Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Sun, 17 Sep 2023 22:12:00 -0700 Subject: [PATCH] Fix an incorrect call when opening an NCA --- src/LibHac/Tools/FsSystem/NcaUtils/Nca.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibHac/Tools/FsSystem/NcaUtils/Nca.cs b/src/LibHac/Tools/FsSystem/NcaUtils/Nca.cs index de5dce32..0f860b4d 100644 --- a/src/LibHac/Tools/FsSystem/NcaUtils/Nca.cs +++ b/src/LibHac/Tools/FsSystem/NcaUtils/Nca.cs @@ -299,8 +299,8 @@ public class Nca var treeHeader = new BucketTree.Header(); info.EncryptionTreeHeader.CopyTo(SpanHelpers.AsByteSpan(ref treeHeader)); - long nodeStorageSize = IndirectStorage.QueryNodeStorageSize(treeHeader.EntryCount); - long entryStorageSize = IndirectStorage.QueryEntryStorageSize(treeHeader.EntryCount); + long nodeStorageSize = AesCtrCounterExtendedStorage.QueryNodeStorageSize(treeHeader.EntryCount); + long entryStorageSize = AesCtrCounterExtendedStorage.QueryEntryStorageSize(treeHeader.EntryCount); var tableNodeStorage = new SubStorage(cachedBucketTreeData, 0, nodeStorageSize); var tableEntryStorage = new SubStorage(cachedBucketTreeData, nodeStorageSize, entryStorageSize);