summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WorldStorage.cpp
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/WorldStorage.cpp
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/WorldStorage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WorldStorage/WorldStorage.cpp b/src/WorldStorage/WorldStorage.cpp
index 6aec525a8..711c8612f 100644
--- a/src/WorldStorage/WorldStorage.cpp
+++ b/src/WorldStorage/WorldStorage.cpp
@@ -68,11 +68,11 @@ cWorldStorage::~cWorldStorage()
-bool cWorldStorage::Start(cWorld * a_World, const AString & a_StorageSchemaName)
+bool cWorldStorage::Start(cWorld * a_World, const AString & a_StorageSchemaName, int a_StorageCompressionFactor )
{
m_World = a_World;
m_StorageSchemaName = a_StorageSchemaName;
- InitSchemas();
+ InitSchemas(a_StorageCompressionFactor);
return super::Start();
}
@@ -197,11 +197,11 @@ void cWorldStorage::UnqueueSave(const cChunkCoords & a_Chunk)
-void cWorldStorage::InitSchemas(void)
+void cWorldStorage::InitSchemas(int a_StorageCompressionFactor)
{
// The first schema added is considered the default
- m_Schemas.push_back(new cWSSAnvil (m_World));
- m_Schemas.push_back(new cWSSCompact (m_World));
+ m_Schemas.push_back(new cWSSAnvil (m_World,a_StorageCompressionFactor));
+ m_Schemas.push_back(new cWSSCompact (m_World,a_StorageCompressionFactor));
m_Schemas.push_back(new cWSSForgetful(m_World));
// Add new schemas here