1
0

AnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks.

Both original zlibbed chunks and re-gzipped chunks are output.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1223 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-02-25 19:06:37 +00:00
parent 4ce0c5a983
commit 24d3d5dac4
11 changed files with 205 additions and 14 deletions

View File

@@ -8,6 +8,7 @@
#include "Statistics.h"
#include "BiomeMap.h"
#include "HeightMap.h"
#include "ChunkExtract.h"
@@ -22,6 +23,7 @@ int main(int argc, char * argv[])
LOG(" 0 - statistics");
LOG(" 1 - biome map");
LOG(" 2 - height map");
LOG(" 3 - extract chunks");
LOG("\nNo method number present, aborting.");
return -1;
}
@@ -39,9 +41,10 @@ int main(int argc, char * argv[])
cCallbackFactory * Factory = NULL;
switch (atol(argv[1]))
{
case 0: Factory = new cStatisticsFactory; break;
case 1: Factory = new cBiomeMapFactory; break;
case 2: Factory = new cHeightMapFactory; break;
case 0: Factory = new cStatisticsFactory; break;
case 1: Factory = new cBiomeMapFactory; break;
case 2: Factory = new cHeightMapFactory; break;
case 3: Factory = new cChunkExtractFactory(WorldFolder); break;
default:
{
LOG("Unknown method \"%s\", aborting.", argv[1]);