CompressedStorage fixes

Removes some leftover CompressedStorage debug code and fixes the CompressionInfoSize constant
This commit is contained in:
Alex Barney 2022-10-16 20:29:50 -07:00
parent afeb3d391b
commit 89b0a46ca3
2 changed files with 1 additions and 4 deletions

View file

@ -46,9 +46,6 @@ internal class CompressedStorage : IStorage
public Result Initialize(MemoryResource allocatorForBucketTree, in ValueSubStorage dataStorage, public Result Initialize(MemoryResource allocatorForBucketTree, in ValueSubStorage dataStorage,
in ValueSubStorage nodeStorage, in ValueSubStorage entryStorage, int bucketTreeEntryCount) in ValueSubStorage nodeStorage, in ValueSubStorage entryStorage, int bucketTreeEntryCount)
{ {
nodeStorage.GetSubStorage().WriteAllBytes("nodeStorage");
entryStorage.GetSubStorage().WriteAllBytes("entryStorage");
Result rc = _bucketTree.Initialize(allocatorForBucketTree, in nodeStorage, in entryStorage, NodeSize, Result rc = _bucketTree.Initialize(allocatorForBucketTree, in nodeStorage, in entryStorage, NodeSize,
Unsafe.SizeOf<Entry>(), bucketTreeEntryCount); Unsafe.SizeOf<Entry>(), bucketTreeEntryCount);
if (rc.IsFailure()) return rc.Miss(); if (rc.IsFailure()) return rc.Miss();

View file

@ -112,7 +112,7 @@ public struct NcaFsHeader
public const int SparseInfoOffset = 0x148; public const int SparseInfoOffset = 0x148;
public const int SparseInfoSize = 0x30; public const int SparseInfoSize = 0x30;
public const int CompressionInfoOffset = 0x178; public const int CompressionInfoOffset = 0x178;
public const int CompressionInfoSize = 0x20; public const int CompressionInfoSize = 0x28;
[FieldOffset(0)] public short Version; [FieldOffset(0)] public short Version;
[FieldOffset(2)] public byte FormatType; [FieldOffset(2)] public byte FormatType;