mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(ArcOpener): report real file size as UnpackedSize.
This commit is contained in:
parent
f3902a4cf1
commit
6b62a1701d
@ -145,7 +145,7 @@ namespace GameRes.Formats.Xuse
|
||||
var dir = new List<Entry> (count);
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
var entry = new Entry {
|
||||
var entry = new PackedEntry {
|
||||
Name = string.Format ("{0}#{1:D4}.ogg", base_name, i),
|
||||
Type = "audio",
|
||||
Offset = next_offset,
|
||||
@ -158,6 +158,11 @@ namespace GameRes.Formats.Xuse
|
||||
else
|
||||
next_offset = file.MaxOffset;
|
||||
entry.Size = (uint)(next_offset - entry.Offset);
|
||||
if (entry.Size >= 0x32)
|
||||
{
|
||||
entry.IsPacked = true;
|
||||
entry.UnpackedSize = entry.Size - 0x32;
|
||||
}
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
dir.Add (entry);
|
||||
|
Loading…
x
Reference in New Issue
Block a user