Skip to content

Commit

Permalink
TABS. TABS EVERYWHERE. Please.
Browse files Browse the repository at this point in the history
Also, gfx.set3D now accept any value (not only boolean), like on Lua. Because why not (Also changed the ctrulib gfxSet3D function to the sf2dlib one).
  • Loading branch information
Reuh committed Aug 20, 2015
1 parent 58309b3 commit 9ab25f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions source/ctr.c
Expand Up @@ -11,14 +11,14 @@ int load_ptm_lib(lua_State *L);
int load_hid_lib(lua_State *L);

static int ctr_time(lua_State *L) {
lua_pushinteger(L, osGetTime());
return 1;
lua_pushinteger(L, osGetTime());

return 1;
}

// Functions
static const struct luaL_Reg ctr_lib[] = {
{ "time", ctr_time},
{ "time", ctr_time},
{ NULL, NULL }
};

Expand Down
8 changes: 3 additions & 5 deletions source/gfx.c
Expand Up @@ -40,13 +40,11 @@ static int gfx_getFPS(lua_State *L) {
}

static int gfx_set3D(lua_State *L) {
bool enable = false;
if (lua_isboolean(L, 1))
enable = lua_toboolean(L, 1);
bool enable = lua_toboolean(L, 1);

gfxSet3D(enable);
sf2d_set_3d(enable);

return 1;
return 0;
}

static int gfx_line(lua_State *L) {
Expand Down
2 changes: 1 addition & 1 deletion source/main.c
Expand Up @@ -52,7 +52,7 @@ int main() {
// Init GFX
sf2d_init();
sftd_init();
//sf2d_set_3d(true);

gfxinit = true;

// Init accel/gyro
Expand Down

0 comments on commit 9ab25f7

Please sign in to comment.