Added love.filesystem.getRealDirectory(filepath).

It returns the platform-specific full path of the directory containing the filepath (rather than the file.) For example, if 'saves/save1.txt' exists in the save directory, love.filesystem.getRealDirectory("saves/save1.txt") will equal love.filesystem.getSaveDirectory().
This commit is contained in:
Alex Szpakowski
2015-02-09 17:43:59 -04:00
parent 70ea0e1f3f
commit 320ec8b472
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ int w_getUserDirectory(lua_State *L);
int w_getAppdataDirectory(lua_State *L);
int w_getSaveDirectory(lua_State *L);
int w_getSourceBaseDirectory(lua_State *L);
int w_getRealDirectory(lua_State *L);
int w_exists(lua_State *L);
int w_isDirectory(lua_State *L);
int w_isFile(lua_State *L);