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

Added some sleep mode related functions, fixed the example, fixed some things

This commit is contained in:
Firew0lf 2016-05-09 23:28:41 +02:00
parent b4ceb200ea
commit 5494f3d2e5
5 changed files with 34 additions and 4 deletions

View file

@ -45,13 +45,13 @@ static int ptm_shutdown(lua_State *L) {
/***
Return the shell state.
@function getShellState
@treturn number shell state
@treturn boolean shell state, `true` if open, `false` if closed.
*/
static int ptm_getShellState(lua_State *L) {
u8 out = 0;
PTMU_GetShellState(&out);
lua_pushinteger(L, out);
lua_pushboolean(L, out);
return 1;
}