mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-12 04:49:32 +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;
|
var nxent = entry as NextonEntry;
|
||||||
if (null == nxent || 0 == nxent.Key)
|
if (null == nxent || 0 == nxent.Key)
|
||||||
return arc.File.CreateStream (entry.Offset, entry.Size);
|
return arc.File.CreateStream (entry.Offset, entry.Size);
|
||||||
var data = new byte[entry.Size];
|
var data = arc.File.View.ReadBytes (entry.Offset, entry.Size);
|
||||||
arc.File.View.Read (entry.Offset, data, 0, entry.Size);
|
|
||||||
for (int i = 0; i != data.Length; ++i)
|
for (int i = 0; i != data.Length; ++i)
|
||||||
data[i] ^= nxent.Key;
|
data[i] ^= nxent.Key;
|
||||||
return new MemoryStream (data);
|
return new MemoryStream (data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user