mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fix an incorrect call when opening an NCA
This commit is contained in:
parent
2b69ec6cf9
commit
04a5d03b5f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue