From d5bab948d910b12f9b55b10c055042d539eff779 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 27 Feb 2016 05:20:48 +0400 Subject: [PATCH] (LibUReader): entry offset is 64-bit. --- ArcFormats/Malie/ArcLIB.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Malie/ArcLIB.cs b/ArcFormats/Malie/ArcLIB.cs index 2bff8c53..31baa34b 100644 --- a/ArcFormats/Malie/ArcLIB.cs +++ b/ArcFormats/Malie/ArcLIB.cs @@ -306,8 +306,8 @@ namespace GameRes.Formats.Malie m_input.BaseStream.Position = index_pos; var name = ReadName(); uint entry_size = m_input.ReadUInt32(); - long entry_offset = base_offset + m_input.ReadUInt32(); - index_pos = m_input.BaseStream.Position + 4; + long entry_offset = base_offset + m_input.ReadInt64(); + index_pos = m_input.BaseStream.Position; bool has_extension = -1 != name.IndexOf ('.'); name = Path.Combine (root, name); if (!has_extension && ReadDir (name, entry_offset))