summaryrefslogtreecommitdiffstats
path: root/source/WSSCompact.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-04 17:18:32 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-04 17:18:32 +0100
commite1b9fb1ab4c8c680d5973fb61a3a52e9e486a043 (patch)
tree09a73dc4a698582fe5eec7c2b16feda821c48d78 /source/WSSCompact.cpp
parentConverted pak files were not marked 'dirty' and wouldn't be saved. Fixed now :) (diff)
downloadcuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.tar
cuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.tar.gz
cuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.tar.bz2
cuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.tar.lz
cuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.tar.xz
cuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.tar.zst
cuberite-e1b9fb1ab4c8c680d5973fb61a3a52e9e486a043.zip
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;