From 78598f92387ca11aade7e0e67f3b5b7e5d81087b Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 21 Mar 2018 09:50:09 +0400 Subject: [PATCH] (Cromwell): recognize voice archives. --- ArcFormats/Cromwell/ArcPAK.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArcFormats/Cromwell/ArcPAK.cs b/ArcFormats/Cromwell/ArcPAK.cs index 4b8417c3..43fe0107 100644 --- a/ArcFormats/Cromwell/ArcPAK.cs +++ b/ArcFormats/Cromwell/ArcPAK.cs @@ -52,6 +52,9 @@ namespace GameRes.Formats.Cromwell int count = file.View.ReadInt32 (0x10); if (!IsSaneCount (count)) return null; + var base_name = Path.GetFileNameWithoutExtension (file.Name); + if (is_graphic && base_name.Equals ("VOICE", System.StringComparison.OrdinalIgnoreCase)) + is_graphic = false; string type = is_graphic ? "image" : "audio"; uint index_offset = 0x14;