1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00

Added SSL support to sockets, Added console/stdout support, Removed apt.init/apt.shutdown, Added some SSL options to httpc

The console can __not__ be used with gfx.start() on a screen. You don't have to gfx.render() while print()ing, but you should do it when you are in the main loop.
The SSL sockets don't work with Citra.
This commit is contained in:
Firew0lf 2016-04-10 01:47:52 +02:00
parent e87651a404
commit e7ff54d58c
9 changed files with 333 additions and 75 deletions

View file

@ -28,6 +28,7 @@ The `ctr.news` module.
@see ctr.news
*/
void load_news_lib(lua_State *L);
void unload_news_lib(lua_State *L);
/***
The `ctr.ptm` module.
@ -35,6 +36,7 @@ The `ctr.ptm` module.
@see ctr.ptm
*/
void load_ptm_lib(lua_State *L);
void unload_ptm_lib(lua_State *L);
/***
The `ctr.hid` module.
@ -80,6 +82,7 @@ The `ctr.cfgu` module.
@see ctr.cfgu
*/
void load_cfgu_lib(lua_State *L);
void unload_cfgu_lib(lua_State *L);
/***
The `ctr.socket` module.
@ -109,6 +112,7 @@ The `ctr.apt` module.
@see ctr.apt
*/
void load_apt_lib(lua_State *L);
void unload_apt_lib(lua_State *L);
/***
The `ctr.mic` module.
@ -168,18 +172,18 @@ static const struct luaL_Reg ctr_lib[] = {
// Subtables
struct { char *name; void (*load)(lua_State *L); void (*unload)(lua_State *L); } ctr_libs[] = {
{ "gfx", load_gfx_lib, unload_gfx_lib },
{ "news", load_news_lib, NULL },
{ "ptm", load_ptm_lib, NULL },
{ "news", load_news_lib, unload_news_lib },
{ "ptm", load_ptm_lib, unload_ptm_lib },
{ "hid", load_hid_lib, unload_hid_lib },
{ "ir", load_ir_lib, NULL },
{ "fs", load_fs_lib, unload_fs_lib },
{ "httpc", load_httpc_lib, unload_httpc_lib },
{ "qtm", load_qtm_lib, NULL },
{ "cfgu", load_cfgu_lib, NULL },
{ "cfgu", load_cfgu_lib, unload_cfgu_lib },
{ "socket", load_socket_lib, NULL },
{ "cam", load_cam_lib, NULL },
{ "audio", load_audio_lib, unload_audio_lib },
{ "apt", load_apt_lib, NULL },
{ "apt", load_apt_lib, unload_apt_lib },
{ "mic", load_mic_lib, NULL },
{ "thread", load_thread_lib, NULL },
{ NULL, NULL, NULL }