mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(ArcOpener.OpenEntry): recognize *.wsc as script files.
This commit is contained in:
parent
47bc5b17b1
commit
63bb1995ef
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user