From 62ccf4428838a01693e9f98be19b551c4a80ee29 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 7 Nov 2017 15:43:01 +0400 Subject: [PATCH] (GRP): archive variation. --- ArcFormats/ExHibit/ArcGRP.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ArcFormats/ExHibit/ArcGRP.cs b/ArcFormats/ExHibit/ArcGRP.cs index bc2d9ea1..6186642e 100644 --- a/ArcFormats/ExHibit/ArcGRP.cs +++ b/ArcFormats/ExHibit/ArcGRP.cs @@ -85,7 +85,13 @@ namespace GameRes.Formats.ExHibit bool arc_found = false; for (int i = 0; i < res_count && index_offset < toc_file.MaxOffset; ++i) { - if (toc_file.View.ReadInt32 (index_offset) == arc_index) + int num = toc_file.View.ReadInt32 (index_offset); + if (0x01000000 == num) + { + index_offset += 4; + num = toc_file.View.ReadInt32 (index_offset); + } + if (num == arc_index) { arc_found = true; break;