(TmrHiroAudio): changed signature interpretation.

This commit is contained in:
morkt 2016-02-27 05:24:37 +04:00
parent d5bab948d9
commit 98ddd452fb
2 changed files with 4 additions and 2 deletions

View File

@ -101,7 +101,7 @@ namespace GameRes.Formats.TmrHiro
entry.Name = Path.ChangeExtension (entry.Name, "grd");
entry.Type = "image";
}
else if (0x44 == signature && entry.Size-9 == file.View.ReadUInt32 (entry.Offset+5))
else if (0x44 == (signature & 0xFF) && entry.Size-9 == file.View.ReadUInt32 (entry.Offset+5))
{
entry.Type = "audio";
}

View File

@ -37,7 +37,7 @@ namespace GameRes.Formats.TmrHiro
{
public override string Tag { get { return "WAV/TMR-HIRO"; } }
public override string Description { get { return "Tmr-Hiro wave audio"; } }
public override uint Signature { get { return 0x44; } }
public override uint Signature { get { return 0; } }
public TmrHiroAudio ()
{
@ -46,6 +46,8 @@ namespace GameRes.Formats.TmrHiro
public override SoundInput TryOpen (Stream file)
{
if (file.ReadByte() != 0x44)
return null;
file.Position = 4;
if (file.ReadByte() != 0)
return null;