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

Load texture in RAM by default

This commit is contained in:
Reuh 2015-08-22 20:07:59 +02:00
parent 604247f278
commit 8da0e47ae3
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ u8 getType(const char *name) {
// module functions
static int texture_load(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
u8 place = luaL_checkinteger(L, 2);
u8 place = luaL_optinteger(L, 2, 0); //place in ram by default
u8 type = luaL_optinteger(L, 3, 3); //type 3 is "search at the end of the filename"
texture_userdata *texture;