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

Fixed the ROMFS, Removed some fields in fs.list(), Updated sftdlib

fs.list() now returns a table with tables containing the fields "name", "fileSize", and "isDirectory"
This commit is contained in:
Firew0lf 2016-04-16 13:24:03 +02:00
parent 6b65df0b8e
commit b798818e99
5 changed files with 149 additions and 143 deletions

View file

@ -95,7 +95,7 @@ static int font_object_width(lua_State *L) {
len = mbstowcs(wtext, text, len);
*(wtext+len) = 0x0; // text end
lua_pushinteger(L, sftd_width_wtext(font->font, size, wtext));
lua_pushinteger(L, sftd_get_wtext_width(font->font, size, wtext));
return 1;
}