(AGS): ignore plain wave files.

This commit is contained in:
morkt 2018-04-03 02:00:53 +04:00
parent b1e59f6b0d
commit 3a9e5de5c8

View File

@ -44,6 +44,8 @@ namespace GameRes.Formats.Ags32i
public override SoundInput TryOpen (IBinaryStream file) public override SoundInput TryOpen (IBinaryStream file)
{ {
uint key = file.Signature ^ 0x46464952u; uint key = file.Signature ^ 0x46464952u;
if (0 == key)
return null;
Stream input = new InputCryptoStream (file.AsStream, new Ags32Transform (key)); Stream input = new InputCryptoStream (file.AsStream, new Ags32Transform (key));
input = new SeekableStream (input); input = new SeekableStream (input);
var header = new byte[12]; var header = new byte[12];