(ArcOpener.OpenEntry): recognize *.wsc as script files.

This commit is contained in:
morkt 2015-08-02 23:00:49 +04:00
parent 47bc5b17b1
commit 63bb1995ef

View File

@ -111,7 +111,8 @@ namespace GameRes.Formats.Will
public override Stream OpenEntry (ArcFile arc, Entry entry)
{
if (!entry.Name.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase))
if (!entry.Name.EndsWith (".scr", StringComparison.InvariantCultureIgnoreCase)
&& !entry.Name.EndsWith (".wsc", StringComparison.InvariantCultureIgnoreCase))
return arc.File.CreateStream (entry.Offset, entry.Size);
var data = new byte[entry.Size];
arc.File.View.Read (entry.Offset, data, 0, entry.Size);