mirror of https://github.com/bjornbytes/lovr.git
Fix lovr.filesystem.getAppdataDirectory;
This commit is contained in:
parent
40cf56f17a
commit
4c78898aec
|
@ -125,7 +125,7 @@ int l_lovrFilesystemExists(lua_State* L) {
|
||||||
int l_lovrFilesystemGetAppdataDirectory(lua_State* L) {
|
int l_lovrFilesystemGetAppdataDirectory(lua_State* L) {
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
|
|
||||||
if (lovrFilesystemGetExecutablePath(buffer, sizeof(buffer))) {
|
if (lovrFilesystemGetAppdataDirectory(buffer, sizeof(buffer))) {
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
} else {
|
} else {
|
||||||
lua_pushstring(L, buffer);
|
lua_pushstring(L, buffer);
|
||||||
|
|
Loading…
Reference in New Issue