mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(GSP): adjusted entry size calculation.
This commit is contained in:
parent
5c9d56c841
commit
476b43cc4b
@ -118,7 +118,7 @@ namespace GameRes.Formats.BlackRainbow
|
||||
}
|
||||
var entry = FormatCatalog.Instance.Create<Entry> (name);
|
||||
entry.Offset = offset + 0x24;
|
||||
entry.Size = i + 1 < index.Count ? (uint)(index[i+1] - offset) : (uint)(file.MaxOffset - offset);
|
||||
entry.Size = (uint)((i + 1 < index.Count ? index[i+1] : file.MaxOffset) - entry.Offset);
|
||||
dir.Add (entry);
|
||||
}
|
||||
return new ArcFile (file, this, dir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user