lua rocklib.c add splash_progress function

Change-Id: I864a301368c3144a7808ecfa9644e679af2ac727
This commit is contained in:
William Wilgus 2026-05-15 11:28:29 -04:00
parent b350d6e066
commit 17d28b96b6

View file

@ -312,6 +312,15 @@ RB_WRAP(splash)
return 0;
}
RB_WRAP(splash_progress)
{
int current = luaL_checkint(L, 1);
int total = luaL_checkint(L, 2);
const char *str = luaL_checkstring(L, 3);
rb->splash_progress(current, total, str);
return 0;
}
RB_WRAP(splash_scroller)
{
int timeout = luaL_checkint(L, 1);
@ -962,6 +971,7 @@ static const luaL_Reg rocklib[] =
RB_FUNC(gui_syncyesno_run),
RB_FUNC(do_menu),
RB_FUNC(splash),
RB_FUNC(splash_progress),
RB_FUNC(splash_scroller),
/* DEVICE AUDIO / SOUND / PLAYLIST CONTROL */