1
0

AnvilStats: Fixed compilation.

This commit is contained in:
madmaxoft 2013-11-24 22:10:27 +01:00
parent 274bdc40ff
commit 2d68969a45
2 changed files with 3 additions and 2 deletions

View File

@ -138,6 +138,7 @@ typedef unsigned short UInt16;
// CRT stuff: // CRT stuff:
#include <sys/stat.h>
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>

View File

@ -554,8 +554,8 @@ void cProcessor::PopulateFileQueue(const AString & a_WorldFolder)
{ {
Path.push_back(cFile::PathSeparator); Path.push_back(cFile::PathSeparator);
} }
AStringList AllFiles = GetDirectoryContents(Path.c_str()); AStringVector AllFiles = cFile::GetFolderContents(Path.c_str());
for (AStringList::iterator itr = AllFiles.begin(), end = AllFiles.end(); itr != end; ++itr) for (AStringVector::iterator itr = AllFiles.begin(), end = AllFiles.end(); itr != end; ++itr)
{ {
if (itr->rfind(".mca") != itr->length() - 4) if (itr->rfind(".mca") != itr->length() - 4)
{ {