From b4a479a691069a0293754fa94922b77ca406fea7 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 15 Nov 2008 16:22:51 +0100 Subject: VFS: Compressed size display support --- vfs/UVFSCore.pas | 2 ++ vfs/uVFSprototypes.pas | 3 +++ 2 files changed, 5 insertions(+) (limited to 'vfs') diff --git a/vfs/UVFSCore.pas b/vfs/UVFSCore.pas index a514512..270b240 100644 --- a/vfs/UVFSCore.pas +++ b/vfs/UVFSCore.pas @@ -596,6 +596,7 @@ begin UID := P^.iUID; GID := P^.iGID; Size := P^.iSize; + PackedSize := P^.iPackedSize; libc_free(P); end; Result := Item; @@ -658,6 +659,7 @@ var Item: PDataItemSL; UID := P^.iUID; GID := P^.iGID; Size := P^.iSize; + PackedSize := P^.iPackedSize; Level := ALevel + Ord(not AddCurrDirStage); end; if AddCurrDirStage then List.Add(Item) diff --git a/vfs/uVFSprototypes.pas b/vfs/uVFSprototypes.pas index 4ccde33..35d6d8f 100644 --- a/vfs/uVFSprototypes.pas +++ b/vfs/uVFSprototypes.pas @@ -112,6 +112,8 @@ type // FDisplayName - plugins must ensure correct UTF-8 string FDisplayName: PChar; iSize: Int64; + // iPackedSize - set to -1 if plugin doesn't support this feature + iPackedSize: Int64; m_time: DWORD; a_time: DWORD; c_time: DWORD; @@ -124,6 +126,7 @@ type FName: PChar; FDisplayName: PChar; iSize: Int64; + iPackedSize: Int64; m_time: QWORD; a_time: QWORD; c_time: QWORD; -- cgit v1.2.3