summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSCompact.h
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-01-17 20:11:37 +0100
committerAlexander Harkness <bearbin@gmail.com>2014-01-17 20:11:37 +0100
commit935600bf0a8d8d97de2f9b2fb391d3b632dfd350 (patch)
tree7f1d8d463d0d70ba888c992f80681a1775a31b6b /src/WorldStorage/WSSCompact.h
parentAPIDump: Updated cPluginManager:GetAllPlugins(). (diff)
parentAdded user setting compression factor (diff)
downloadcuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.gz
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.bz2
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.lz
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.xz
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.zst
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/WSSCompact.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/WorldStorage/WSSCompact.h b/src/WorldStorage/WSSCompact.h
index 3223a986e..64b8d7f31 100644
--- a/src/WorldStorage/WSSCompact.h
+++ b/src/WorldStorage/WSSCompact.h
@@ -53,7 +53,7 @@ class cWSSCompact :
public cWSSchema
{
public:
- cWSSCompact(cWorld * a_World) : cWSSchema(a_World) {}
+ cWSSCompact(cWorld * a_World, int a_CompressionFactor) : cWSSchema(a_World), m_CompressionFactor(a_CompressionFactor) {}
virtual ~cWSSCompact();
protected:
@@ -74,7 +74,7 @@ protected:
{
public:
- cPAKFile(const AString & a_FileName, int a_LayerX, int a_LayerZ);
+ cPAKFile(const AString & a_FileName, int a_LayerX, int a_LayerZ, int a_CompressionFactor);
~cPAKFile();
bool GetChunkData(const cChunkCoords & a_Chunk, int & a_UncompressedSize, AString & a_Data);
@@ -95,6 +95,7 @@ protected:
protected:
AString m_FileName;
+ int m_CompressionFactor;
int m_LayerX;
int m_LayerZ;
@@ -119,6 +120,8 @@ protected:
cCriticalSection m_CS;
cPAKFiles m_PAKFiles; // A MRU cache of PAK files
+ int m_CompressionFactor;
+
/// Loads the correct PAK file either from cache or from disk, manages the m_PAKFiles cache
cPAKFile * LoadPAKFile(const cChunkCoords & a_Chunk);