(Cromwell): recognize voice archives.

This commit is contained in:
morkt 2018-03-21 09:50:09 +04:00
parent 7360e65a6b
commit 78598f9238

View File

@ -52,6 +52,9 @@ namespace GameRes.Formats.Cromwell
int count = file.View.ReadInt32 (0x10); int count = file.View.ReadInt32 (0x10);
if (!IsSaneCount (count)) if (!IsSaneCount (count))
return null; 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"; string type = is_graphic ? "image" : "audio";
uint index_offset = 0x14; uint index_offset = 0x14;