mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Added the "ctr.news" API. WIP, should not work correctly. Seriously, don't use it. Don't even load it.
This commit is contained in:
parent
64dbc95fde
commit
4d4838d392
2 changed files with 58 additions and 2 deletions
|
|
@ -3,13 +3,15 @@
|
|||
|
||||
int load_gfx_lib(lua_State *L);
|
||||
int load_os_lib(lua_State *L);
|
||||
int load_news_lib(lua_State *L);
|
||||
|
||||
static const struct luaL_Reg ctr_lib[] = {
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
struct { char *name; int (*load)(lua_State *L); } ctr_libs[] = {
|
||||
{ "gfx", load_gfx_lib },
|
||||
{ "gfx", load_gfx_lib },
|
||||
{ "news", load_news_lib },
|
||||
{ NULL, NULL },
|
||||
};
|
||||
|
||||
|
|
@ -27,4 +29,4 @@ int luaopen_ctr_lib(lua_State *L) {
|
|||
void load_ctr_lib(lua_State *L) {
|
||||
load_os_lib(L);
|
||||
luaL_requiref(L, "ctr", luaopen_ctr_lib, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue