From 309b1efe11d52c66e0f64f95cd0d134f1d97fb60 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 14 Mar 2017 00:46:57 +0400 Subject: [PATCH] (EAGLS): recognize large index files (#53) --- ArcFormats/Eagls/ArcEAGLS.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/Eagls/ArcEAGLS.cs b/ArcFormats/Eagls/ArcEAGLS.cs index 406b3288..9adfe5ce 100644 --- a/ArcFormats/Eagls/ArcEAGLS.cs +++ b/ArcFormats/Eagls/ArcEAGLS.cs @@ -67,6 +67,8 @@ namespace GameRes.Formats.Eagls index = DecryptIndex (idx); int index_offset = 0; int entry_size = index.Length / 10000; + if (entry_size > 40) + entry_size = 40; bool long_offsets = 40 == entry_size; int name_size = long_offsets ? 0x18 : 0x14; long first_offset = LittleEndian.ToUInt32 (index, name_size);