mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
TABS. TABS EVERYWHERE. Please.
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).
This commit is contained in:
parent
58309b39c2
commit
9ab25f7518
3 changed files with 8 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue