Added love.filesystem.getSize (issue #541)

This commit is contained in:
Alex Szpakowski
2013-03-17 01:56:24 -03:00
parent e8c6a3f77c
commit 8d4f35b86b
4 changed files with 49 additions and 0 deletions
@@ -281,6 +281,12 @@ public:
int getLastModified(lua_State *L);
/**
* Gets the size of a file in bytes.
* @param filename The name of the file.
**/
int64 getSize(const char *filename);
/**
* Text file line-reading iterator function used and
* pushed on the Lua stack by love.filesystem.lines