diff --git a/LibHac/Savefile/Journal.cs b/LibHac/Savefile/Journal.cs index 0fe3cc99..858eb771 100644 --- a/LibHac/Savefile/Journal.cs +++ b/LibHac/Savefile/Journal.cs @@ -17,6 +17,9 @@ namespace LibHac.Savefile Map = map; BlockSize = blockSize; Length = map.Length * BlockSize; + + CurrentMapEntry = Map[0]; + BaseStream.Position = CurrentMapEntry.PhysicalIndex * BlockSize; } public override int Read(byte[] buffer, int offset, int count) diff --git a/NandReader/Program.cs b/NandReader/Program.cs index 204dc04a..fe20e369 100644 --- a/NandReader/Program.cs +++ b/NandReader/Program.cs @@ -103,8 +103,8 @@ namespace NandReader { var tickets = new List(); var save = new Savefile(savefile); - var ticketList = new BinaryReader(save.OpenFile("ticket_list.bin")); - var ticketFile = new BinaryReader(save.OpenFile("ticket.bin")); + var ticketList = new BinaryReader(save.OpenFile("/ticket_list.bin")); + var ticketFile = new BinaryReader(save.OpenFile("/ticket.bin")); var titleId = ticketList.ReadUInt64(); while (titleId != ulong.MaxValue)