lua rocklib.c add splash_progress function

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sat, 16 May 2026 14:56:52 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 17d28b96b6f10d889b3654abd15978b9b44de5ca
Author: William Wilgus <[email protected]>
Date:   Fri May 15 11:28:29 2026 -0400

    lua rocklib.c add splash_progress function
    
    Change-Id: I864a301368c3144a7808ecfa9644e679af2ac727

diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index 4d77afedc0..927ca0b5d0 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -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 */
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs