Add variants of File:read and love.filesystem.read which take an enum to determine whether they return a FileData or string.

This commit is contained in:
Alex Szpakowski
2017-12-22 16:32:54 -04:00
parent 9fa73f8b87
commit 0b7cb4a353
3 changed files with 55 additions and 14 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ int w_hash(lua_State *L)
return 1;
}
static int w_pack(lua_State *L)
int w_pack(lua_State *L)
{
ContainerType ctype = luax_checkcontainertype(L, 1);
const char *fmt = luaL_checkstring(L, 2);