mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 05:38:48 +08:00
修正: PackedEntryクラスのメンバ変数IsPackedの判定条件変更
This commit is contained in:
@@ -460,7 +460,7 @@ namespace GameRes.Formats.Cyberworks
|
||||
};
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
entry.IsPacked = entry.UnpackedSize != entry.Size;
|
||||
entry.IsPacked = entry.UnpackedSize != entry.Size && entry.UnpackedSize != 0;
|
||||
dir.Add (entry);
|
||||
}
|
||||
}
|
||||
@@ -637,7 +637,7 @@ namespace GameRes.Formats.Cyberworks
|
||||
var entry = new PackedEntry { Name = id.ToString ("D6") };
|
||||
entry.UnpackedSize = m_index.ReadUInt32();
|
||||
entry.Size = m_index.ReadUInt32();
|
||||
entry.IsPacked = entry.UnpackedSize != entry.Size;
|
||||
entry.IsPacked = entry.UnpackedSize != entry.Size && entry.UnpackedSize != 0;
|
||||
entry.Offset = m_index.ReadUInt32();
|
||||
return entry;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user