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

Added a function to get the available VRAM space, Improved the ctr.news library

This commit is contained in:
Firew0lf 2015-08-23 18:07:15 +02:00
parent f098e4a68e
commit af9e160668
2 changed files with 23 additions and 12 deletions

View file

@ -18,10 +18,12 @@ static int news_notification(lua_State *L) {
bool jpeg = false;
if (lua_isboolean(L, 4))
jpeg = lua_toboolean(L, 4);
lua_len(L, 3);
u32 imageDataLength = luaL_checkinteger(L, -1);
const u16* cTitle = 0;
const u16* cMessage = 0;
u32 titleLength, messageLength, imageDataLength = 0;
u32 titleLength, messageLength;
titleLength = (u32) utf8_to_utf16((uint16_t*)cTitle, (uint8_t*)title, sizeof(title));
messageLength = (u32) utf8_to_utf16((uint16_t*)cMessage, (uint8_t*)message, sizeof(message));