mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
CompressedStorage fixes
Removes some leftover CompressedStorage debug code and fixes the CompressionInfoSize constant
This commit is contained in:
parent
afeb3d391b
commit
89b0a46ca3
2 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue