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/WorldStorage.cpp | |
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 'src/WorldStorage/WorldStorage.cpp')
-rw-r--r-- | src/WorldStorage/WorldStorage.cpp | 10 |
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 |