mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
fixed packed file size in created archives.
This commit is contained in:
parent
5688546a85
commit
881a95c165
@ -474,6 +474,7 @@ NextEntry:
|
|||||||
xp3entry.Hash = CheckedCopy (file, zstream);
|
xp3entry.Hash = CheckedCopy (file, zstream);
|
||||||
zstream.Flush();
|
zstream.Flush();
|
||||||
segment.PackedSize = (uint)zstream.TotalOut;
|
segment.PackedSize = (uint)zstream.TotalOut;
|
||||||
|
xp3entry.Size = segment.PackedSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -538,6 +539,7 @@ NextEntry:
|
|||||||
{
|
{
|
||||||
output.Flush();
|
output.Flush();
|
||||||
segment.PackedSize = (uint)(output as ZLibStream).TotalOut;
|
segment.PackedSize = (uint)(output as ZLibStream).TotalOut;
|
||||||
|
xp3entry.Size = segment.PackedSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user