From 723ffe5550207f785aa2a0426e6ce7858787627a Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Wed, 27 Jun 2018 14:09:33 -0500 Subject: [PATCH] Fix NcaFsHeader reading --- libhac/NcaStructs.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libhac/NcaStructs.cs b/libhac/NcaStructs.cs index 4e10fdf7..74d1de23 100644 --- a/libhac/NcaStructs.cs +++ b/libhac/NcaStructs.cs @@ -96,6 +96,7 @@ namespace libhac public Pfs0Superblock Pfs0; public RomfsSuperblock Romfs; public BktrSuperblock Bktr; + public ulong Ctr; public NcaFsHeader(BinaryReader reader) { @@ -124,6 +125,9 @@ namespace libhac Romfs = new RomfsSuperblock(reader); } } + + Ctr = reader.ReadUInt64(); + reader.BaseStream.Position += 184; } }