Fix lovr.filesystem.getAppdataDirectory;

This commit is contained in:
bjorn 2017-03-11 01:45:33 -08:00
parent 40cf56f17a
commit 4c78898aec
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ int l_lovrFilesystemExists(lua_State* L) {
int l_lovrFilesystemGetAppdataDirectory(lua_State* L) {
char buffer[1024];
if (lovrFilesystemGetExecutablePath(buffer, sizeof(buffer))) {
if (lovrFilesystemGetAppdataDirectory(buffer, sizeof(buffer))) {
lua_pushnil(L);
} else {
lua_pushstring(L, buffer);