From f492b60af3409e107bba72cf6ceb5cf2f36836b2 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 8 Oct 2018 08:44:35 +0400 Subject: [PATCH] (ALD): recognize old archive version. --- ArcFormats/AliceSoft/ArcALD.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/AliceSoft/ArcALD.cs b/ArcFormats/AliceSoft/ArcALD.cs index ab9d15c5..a05ae893 100644 --- a/ArcFormats/AliceSoft/ArcALD.cs +++ b/ArcFormats/AliceSoft/ArcALD.cs @@ -45,7 +45,8 @@ namespace GameRes.Formats.AliceSoft long index_offset = file.MaxOffset - 0x10; if (index_offset <= 0) return null; - if (0x014c4e != file.View.ReadUInt32 (index_offset) + uint version = file.View.ReadUInt32 (index_offset); + if (0x014C4E != version && 0x012020 != version || 0x10 != file.View.ReadUInt32 (index_offset+4)) return null; int count = file.View.ReadUInt16 (index_offset+9);