mirror of https://github.com/bjornbytes/lovr.git
Don't mind me;
This commit is contained in:
parent
c210d4e11d
commit
cc858e062c
|
@ -62,7 +62,7 @@ static int l_lovrFilesystemAppend(lua_State* L) {
|
||||||
size_t size;
|
size_t size;
|
||||||
const char* path = luaL_checkstring(L, 1);
|
const char* path = luaL_checkstring(L, 1);
|
||||||
const char* content = luaL_checklstring(L, 2, &size);
|
const char* content = luaL_checklstring(L, 2, &size);
|
||||||
lua_pushnumber(L, lovrFilesystemWrite(path, content, size, 1));
|
lua_pushnumber(L, lovrFilesystemWrite(path, content, size, true));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ static int l_lovrFilesystemWrite(lua_State* L) {
|
||||||
size_t size;
|
size_t size;
|
||||||
const char* path = luaL_checkstring(L, 1);
|
const char* path = luaL_checkstring(L, 1);
|
||||||
const char* content = luaL_checklstring(L, 2, &size);
|
const char* content = luaL_checklstring(L, 2, &size);
|
||||||
lua_pushnumber(L, lovrFilesystemWrite(path, content, size, 0));
|
lua_pushnumber(L, lovrFilesystemWrite(path, content, size, false));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue