mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
lua rocklib.c add splash_progress function
Change-Id: I864a301368c3144a7808ecfa9644e679af2ac727
This commit is contained in:
parent
b350d6e066
commit
17d28b96b6
1 changed files with 10 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue