From 3a9e5de5c89b5590a94dcfe4f70dd75dee1215e0 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 3 Apr 2018 02:00:53 +0400 Subject: [PATCH] (AGS): ignore plain wave files. --- Legacy/Ags32i/AudioAGS.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Legacy/Ags32i/AudioAGS.cs b/Legacy/Ags32i/AudioAGS.cs index 331c6b26..5fc1202d 100644 --- a/Legacy/Ags32i/AudioAGS.cs +++ b/Legacy/Ags32i/AudioAGS.cs @@ -44,6 +44,8 @@ namespace GameRes.Formats.Ags32i public override SoundInput TryOpen (IBinaryStream file) { uint key = file.Signature ^ 0x46464952u; + if (0 == key) + return null; Stream input = new InputCryptoStream (file.AsStream, new Ags32Transform (key)); input = new SeekableStream (input); var header = new byte[12];