From 63bb1995ef409da4bb4dc13dd870c5a64d5bf231 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 2 Aug 2015 23:00:49 +0400 Subject: [PATCH] (ArcOpener.OpenEntry): recognize *.wsc as script files. --- ArcFormats/ArcWILL.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/ArcWILL.cs b/ArcFormats/ArcWILL.cs index 51578e6e..12f94fc8 100644 --- a/ArcFormats/ArcWILL.cs +++ b/ArcFormats/ArcWILL.cs @@ -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);