Removed the callback argument from love.filesystem.getDirectoryItems (resolves issue #877.)

Cleaned up the getDirectoryItems ccde to no longer call Lua API functions from Filesystem.cpp (now it's all in wrap_Filesystem.cpp.)
This commit is contained in:
Alex Szpakowski
2015-04-25 00:16:10 -03:00
parent 289eeb4fe0
commit e7f56241ec
4 changed files with 19 additions and 28 deletions
+1 -2
View File
@@ -23,7 +23,6 @@
// LOVE
#include "common/config.h"
#include "common/runtime.h"
#include "common/Module.h"
#include "common/int.h"
#include "FileData.h"
@@ -208,7 +207,7 @@ public:
* This "native" method returns a table of all
* files in a given directory.
**/
virtual int getDirectoryItems(lua_State *L) = 0;
virtual void getDirectoryItems(const char *dir, std::vector<std::string> &items) = 0;
/**
* Gets the last modification time of a file, in seconds