diff options
author | Alexander Harkness <bearbin@gmail.com> | 2014-01-17 20:11:37 +0100 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2014-01-17 20:11:37 +0100 |
commit | 935600bf0a8d8d97de2f9b2fb391d3b632dfd350 (patch) | |
tree | 7f1d8d463d0d70ba888c992f80681a1775a31b6b /src/WorldStorage/WSSCompact.h | |
parent | APIDump: Updated cPluginManager:GetAllPlugins(). (diff) | |
parent | Added user setting compression factor (diff) | |
download | cuberite-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.h | 7 |
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); |