diff --git a/ArcFormats/Tmr-Hiro/ArcPAC.cs b/ArcFormats/Tmr-Hiro/ArcPAC.cs index 4c44a3e3..f5693df6 100644 --- a/ArcFormats/Tmr-Hiro/ArcPAC.cs +++ b/ArcFormats/Tmr-Hiro/ArcPAC.cs @@ -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"; } diff --git a/ArcFormats/Tmr-Hiro/AudioTmr.cs b/ArcFormats/Tmr-Hiro/AudioTmr.cs index 5a79610e..e3cd6e06 100644 --- a/ArcFormats/Tmr-Hiro/AudioTmr.cs +++ b/ArcFormats/Tmr-Hiro/AudioTmr.cs @@ -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;