From 380e8c26871f2aa8f8ef636c5a3c6f07c0d0d4dd Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 3 Jun 2025 01:45:18 -0400 Subject: [PATCH] [BugFix] lua add stub for splash() to splashf() Change-Id: If3fbcae201fd950c60eedc9e090cca5f9ca45bae --- apps/plugins/lua/rocklib.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index 070fdb4991..9931d65326 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c @@ -303,6 +303,14 @@ RB_WRAP(do_menu) return 1; } +RB_WRAP(splash) +{ + int timeout = luaL_checkint(L, 1); + const char *str = luaL_checkstring(L, 2); + rb->splashf(timeout, str); /*rockaux.c*/ + return 0; +} + RB_WRAP(splash_scroller) { int timeout = luaL_checkint(L, 1); @@ -964,6 +972,7 @@ static const luaL_Reg rocklib[] = RB_FUNC(kbd_input), RB_FUNC(gui_syncyesno_run), RB_FUNC(do_menu), + RB_FUNC(splash), RB_FUNC(splash_scroller), /* DEVICE AUDIO / SOUND / PLAYLIST CONTROL */