summaryrefslogtreecommitdiffstats
path: root/Tools/AnvilStats/Processor.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-30 19:38:21 +0200
committermadmaxoft <github@xoft.cz>2013-08-30 19:38:21 +0200
commit32bc9693390c7a2b662ec55a17b338fe68a720eb (patch)
tree7e60a380acb5cdeb1201c3f9e05e169d75b24ade /Tools/AnvilStats/Processor.cpp
parentAnvilStats: Ignoring the build folders (diff)
downloadcuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.tar
cuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.tar.gz
cuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.tar.bz2
cuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.tar.lz
cuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.tar.xz
cuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.tar.zst
cuberite-32bc9693390c7a2b662ec55a17b338fe68a720eb.zip
Diffstat (limited to 'Tools/AnvilStats/Processor.cpp')
-rw-r--r--Tools/AnvilStats/Processor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tools/AnvilStats/Processor.cpp b/Tools/AnvilStats/Processor.cpp
index e7f7eb21d..8e1cc4c4b 100644
--- a/Tools/AnvilStats/Processor.cpp
+++ b/Tools/AnvilStats/Processor.cpp
@@ -76,6 +76,12 @@ void cProcessor::cThread::ProcessFile(const AString & a_FileName)
return;
}
+ if (m_Callback.OnNewRegion(RegionX, RegionZ))
+ {
+ // Callback doesn't want the region file processed
+ return;
+ }
+
cFile f;
if (!f.Open(a_FileName, cFile::fmRead))
{
@@ -92,6 +98,8 @@ void cProcessor::cThread::ProcessFile(const AString & a_FileName)
}
ProcessFileData(FileContents.data(), FileContents.size(), RegionX * 32, RegionZ * 32);
+
+ m_Callback.OnRegionFinished(RegionX, RegionZ);
}