mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(LstOpener): use ArcView.ReadBytes method.
This commit is contained in:
parent
e65e034f31
commit
77f5693016
@ -147,8 +147,7 @@ namespace GameRes.Formats.Nexton
|
||||
var nxent = entry as NextonEntry;
|
||||
if (null == nxent || 0 == nxent.Key)
|
||||
return arc.File.CreateStream (entry.Offset, entry.Size);
|
||||
var data = new byte[entry.Size];
|
||||
arc.File.View.Read (entry.Offset, data, 0, entry.Size);
|
||||
var data = arc.File.View.ReadBytes (entry.Offset, entry.Size);
|
||||
for (int i = 0; i != data.Length; ++i)
|
||||
data[i] ^= nxent.Key;
|
||||
return new MemoryStream (data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user