(OpenEntry): recognize actual WAV files.

This commit is contained in:
morkt 2016-02-01 08:31:23 +04:00
parent 2e21deb2db
commit a4279005a6

View File

@ -146,7 +146,8 @@ namespace GameRes.Formats.Softpal
{ {
if (arc is TpArchive) if (arc is TpArchive)
return OpenVoiceEntry (arc, entry); return OpenVoiceEntry (arc, entry);
else if ("audio" == entry.Type) else if ("audio" == entry.Type
&& AudioFormat.Wav.Signature != arc.File.View.ReadUInt32 (entry.Offset))
return OpenAudioEntry (arc, entry); return OpenAudioEntry (arc, entry);
else else
return base.OpenEntry (arc, entry); return base.OpenEntry (arc, entry);