mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(Cromwell): recognize voice archives.
This commit is contained in:
parent
7360e65a6b
commit
78598f9238
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user