diff options
author | madmaxoft <github@xoft.cz> | 2013-11-24 22:10:27 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-24 22:10:27 +0100 |
commit | 2d68969a45a1d259728bb752d95bd517cdd8a772 (patch) | |
tree | 095a65b5719ab99d6e510aa6493594493ac55384 /Tools | |
parent | BiomeVisualiser: Added 1.7 biomes, recolored using AMIDST colors. (diff) | |
download | cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.tar cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.tar.gz cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.tar.bz2 cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.tar.lz cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.tar.xz cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.tar.zst cuberite-2d68969a45a1d259728bb752d95bd517cdd8a772.zip |
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/AnvilStats/Globals.h | 1 | ||||
-rw-r--r-- | Tools/AnvilStats/Processor.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Tools/AnvilStats/Globals.h b/Tools/AnvilStats/Globals.h index db5d3c635..48e1f8492 100644 --- a/Tools/AnvilStats/Globals.h +++ b/Tools/AnvilStats/Globals.h @@ -138,6 +138,7 @@ typedef unsigned short UInt16; // CRT stuff: +#include <sys/stat.h> #include <assert.h> #include <stdio.h> #include <math.h> diff --git a/Tools/AnvilStats/Processor.cpp b/Tools/AnvilStats/Processor.cpp index 8e1cc4c4b..4ecd685ad 100644 --- a/Tools/AnvilStats/Processor.cpp +++ b/Tools/AnvilStats/Processor.cpp @@ -554,8 +554,8 @@ void cProcessor::PopulateFileQueue(const AString & a_WorldFolder) { Path.push_back(cFile::PathSeparator); } - AStringList AllFiles = GetDirectoryContents(Path.c_str()); - for (AStringList::iterator itr = AllFiles.begin(), end = AllFiles.end(); itr != end; ++itr) + AStringVector AllFiles = cFile::GetFolderContents(Path.c_str()); + for (AStringVector::iterator itr = AllFiles.begin(), end = AllFiles.end(); itr != end; ++itr) { if (itr->rfind(".mca") != itr->length() - 4) { |