mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 12:24:12 +08:00
(PcmAudio): refined signature check.
This commit is contained in:
parent
3ad0b80d0f
commit
83ebaec6be
@ -43,7 +43,7 @@ namespace GameRes.Formats.Ags
|
|||||||
|
|
||||||
public override SoundInput TryOpen (Stream file)
|
public override SoundInput TryOpen (Stream file)
|
||||||
{
|
{
|
||||||
uint signature = FormatCatalog.ReadSignature (file) & 0xFFFFFF;
|
uint signature = FormatCatalog.ReadSignature (file) & 0xF0FFFFFF;
|
||||||
if (0x564157 != signature) // 'WAV'
|
if (0x564157 != signature) // 'WAV'
|
||||||
return null;
|
return null;
|
||||||
return new PcmInput (file);
|
return new PcmInput (file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user