1
0
Fork 0
forked from len0rd/rockbox

Fix red Lua extend error splash timeout and stop cutting off info

Change-Id: Icd6fe0fa1088ab59b8214f7c860f262ce67fe205
This commit is contained in:
William Wilgus 2019-09-06 21:13:16 -05:00
parent bbd4a6cb91
commit f9225da811

View file

@ -103,7 +103,7 @@ static int db_errorfb (lua_State *L) {
}
lua_pushliteral(L, "\n\t");
lua_getinfo(L1, "Snl", &ar);
char* filename = strrchr(ar.short_src, '/');
char* filename = rb->strrchr(ar.short_src, '/'); /* remove path */
lua_pushfstring(L, "%s:", filename ? filename : ar.short_src);
if (ar.currentline > 0)
lua_pushfstring(L, "%d:", ar.currentline);