(NpkSegment): IsCompressed is better off as a property.

This commit is contained in:
morkt 2016-02-21 22:08:18 +04:00
parent 4d90314f0a
commit a73471c0b5
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ namespace GameRes.Formats.NitroPlus
public uint AlignedSize; public uint AlignedSize;
public uint Size; public uint Size;
public uint UnpackedSize; public uint UnpackedSize;
public bool IsCompressed; public bool IsCompressed { get { return Size < UnpackedSize; } }
} }
internal class NpkArchive : ArcFile internal class NpkArchive : ArcFile
@ -153,7 +153,6 @@ namespace GameRes.Formats.NitroPlus
segment.AlignedSize = index.ReadUInt32(); segment.AlignedSize = index.ReadUInt32();
segment.Size = index.ReadUInt32(); segment.Size = index.ReadUInt32();
segment.UnpackedSize = index.ReadUInt32(); segment.UnpackedSize = index.ReadUInt32();
segment.IsCompressed = segment.Size < segment.UnpackedSize;
entry.Segments.Add (segment); entry.Segments.Add (segment);
packed_size += segment.AlignedSize; packed_size += segment.AlignedSize;
is_packed = is_packed || segment.IsCompressed; is_packed = is_packed || segment.IsCompressed;

View File

@ -649,6 +649,7 @@ Wondering Repair!<br/>
</td></tr> </td></tr>
<tr><td>*.pac</td><td>-</td><td>No</td><td>Tmr-Hiro ADV System</td><td> <tr><td>*.pac</td><td>-</td><td>No</td><td>Tmr-Hiro ADV System</td><td>
Hitozuma Sakunyuu Hyakkaten<br/> Hitozuma Sakunyuu Hyakkaten<br/>
Mai Miko Moe<br/>
</td></tr> </td></tr>
<tr class="odd"><td>*.snn+*.inx</td><td>-</td><td>No</td><td rowspan="2">BlueGale</td><td rowspan="2"> <tr class="odd"><td>*.snn+*.inx</td><td>-</td><td>No</td><td rowspan="2">BlueGale</td><td rowspan="2">
Cafe Junkie<br/> Cafe Junkie<br/>