mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(TmrHiroAudio): changed signature interpretation.
This commit is contained in:
parent
d5bab948d9
commit
98ddd452fb
@ -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";
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user