mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(VffOpener): offsets are 64-bit integers.
This commit is contained in:
parent
7920af7fe9
commit
eb61ca6861
@ -153,13 +153,13 @@ namespace GameRes.Formats.LiveMaker
|
|||||||
dir.Add (FormatCatalog.Instance.Create<PackedEntry> (name));
|
dir.Add (FormatCatalog.Instance.Create<PackedEntry> (name));
|
||||||
}
|
}
|
||||||
rnd.Reset();
|
rnd.Reset();
|
||||||
uint offset = file.View.ReadUInt32 (index_offset) ^ rnd.GetRand32();
|
long offset = file.View.ReadInt64 (index_offset) ^ (int)rnd.GetRand32();
|
||||||
foreach (var entry in dir)
|
foreach (var entry in dir)
|
||||||
{
|
{
|
||||||
index_offset += 8;
|
index_offset += 8;
|
||||||
uint next_offset = file.View.ReadUInt32 (index_offset) ^ rnd.GetRand32();
|
long next_offset = file.View.ReadInt64 (index_offset) ^ (int)rnd.GetRand32();
|
||||||
entry.Offset = offset;
|
entry.Offset = offset;
|
||||||
entry.Size = next_offset - offset;
|
entry.Size = (uint)(next_offset - offset);
|
||||||
offset = next_offset;
|
offset = next_offset;
|
||||||
}
|
}
|
||||||
index_offset += 8;
|
index_offset += 8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user