Added filesystem module

This commit is contained in:
rxi
2016-09-29 19:22:29 +01:00
parent a20901c2ba
commit 2689bfc2fa
4 changed files with 501 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ int luaopen_image(lua_State *L);
int luaopen_quad(lua_State *L);
int luaopen_font(lua_State *L);
int luaopen_system(lua_State *L);
int luaopen_filesystem(lua_State *L);
int luaopen_graphics(lua_State *L);
int luaopen_timer(lua_State *L);
int luaopen_keyboard(lua_State *L);
@@ -50,11 +51,12 @@ int luaopen_love(lua_State *L) {
/* Init submodules */
struct { char *name; int (*fn)(lua_State *L); } mods[] = {
{ "system", luaopen_system },
{ "graphics", luaopen_graphics },
{ "timer", luaopen_timer },
{ "keyboard", luaopen_keyboard },
{ "mouse", luaopen_mouse },
{ "system", luaopen_system },
{ "filesystem", luaopen_filesystem },
{ "graphics", luaopen_graphics },
{ "timer", luaopen_timer },
{ "keyboard", luaopen_keyboard },
{ "mouse", luaopen_mouse },
{ 0 },
};
for (i = 0; mods[i].name; i++) {