summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/WSSCompact.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/WSSCompact.cpp b/source/WSSCompact.cpp
index 162a7d8e5..ff514b209 100644
--- a/source/WSSCompact.cpp
+++ b/source/WSSCompact.cpp
@@ -397,11 +397,18 @@ void cWSSCompact::cPAKFile::UpdateChunk1To2()
LOGINFO("Updating \"%s\" version 1 to version 2", m_FileName.c_str() );
int Offset = 0;
AString NewDataContents;
+ int ChunksConverted = 0;
for (sChunkHeaders::iterator itr = m_ChunkHeaders.begin(); itr != m_ChunkHeaders.end(); ++itr)
{
sChunkHeader * Header = *itr;
- LOGINFO("Updating \"%s\" version 1 to version 2: Updating chunk [%d, %d]", m_FileName.c_str(), Header->m_ChunkX, Header->m_ChunkZ );
+
+ if( ChunksConverted % 32 == 0 )
+ {
+ LOGINFO("Updating \"%s\" version 1 to version 2: %d\%", m_FileName.c_str(), (ChunksConverted*100) / m_ChunkHeaders.size() );
+ }
+ ChunksConverted++;
+
AString Data;
int UncompressedSize = Header->m_UncompressedSize;