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

Added CIA, bugfixes, portlibs update

This commit is contained in:
Firew0lf 2017-05-23 21:49:03 +02:00
parent 2725dce383
commit b19ec95cc7
14 changed files with 757 additions and 158 deletions

View file

@ -10,6 +10,7 @@ The `ctr` module.
#include <3ds/services/apt.h>
#include <3ds/os.h>
#include <3ds/svc.h>
#include <3ds/services/hb.h>
#include <lua.h>
#include <lauxlib.h>
@ -252,6 +253,18 @@ int luaopen_ctr_lib(lua_State *L) {
#endif
lua_pushstring(L, buff);
lua_setfield(L, -2, "root");
/***
Whether or not ctrµLua has been launched with ninjhax
@field hb
*/
if (!hbInit()) {
hbExit();
lua_pushboolean(L, true);
} else {
lua_pushboolean(L, false);
}
lua_setfield(L, -2, "hb");
return 1;
}