mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-25 20:34:13 +08:00
renamed local var.
This commit is contained in:
parent
efbb3aef2c
commit
8640e34c27
@ -77,7 +77,7 @@ namespace GameRes.Formats.Ail
|
|||||||
}
|
}
|
||||||
if (offset != file.MaxOffset || 0 == dir.Count)
|
if (offset != file.MaxOffset || 0 == dir.Count)
|
||||||
return null;
|
return null;
|
||||||
byte[] data_buf = new byte[16];
|
byte[] preview = new byte[16];
|
||||||
byte[] sign_buf = new byte[4];
|
byte[] sign_buf = new byte[4];
|
||||||
foreach (var entry in dir.Cast<PackedEntry>())
|
foreach (var entry in dir.Cast<PackedEntry>())
|
||||||
{
|
{
|
||||||
@ -94,8 +94,8 @@ namespace GameRes.Formats.Ail
|
|||||||
entry.Size -= extra;
|
entry.Size -= extra;
|
||||||
if (entry.IsPacked)
|
if (entry.IsPacked)
|
||||||
{
|
{
|
||||||
file.View.Read (entry.Offset, data_buf, 0, (uint)data_buf.Length);
|
file.View.Read (entry.Offset, preview, 0, (uint)preview.Length);
|
||||||
using (var input = new MemoryStream (data_buf))
|
using (var input = new MemoryStream (preview))
|
||||||
{
|
{
|
||||||
LzssUnpack (input, sign_buf);
|
LzssUnpack (input, sign_buf);
|
||||||
uint signature = LittleEndian.ToUInt32 (sign_buf, 0);
|
uint signature = LittleEndian.ToUInt32 (sign_buf, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user