Skip to content

Add util.multiboot() to Lua API - #152

Merged
black-ghost-off merged 1 commit into
lilka-dev:mainfrom
sverdlyuk:main
Nov 3, 2026
Merged

black-ghost-off merged 1 commit into
lilka-dev:mainfrom
sverdlyuk:main

Conversation

@sverdlyuk

Copy link
Copy Markdown
Contributor

What

Adds a new Lua function util.multiboot(binPath, args) to the util module.

It sets the kernel command-line parameters via lilka::multiboot.setCMDParams(args)
and launches the given .bin through Keira's standard bin handler
(K_FT_BIN_HANDLER) — the same mechanism the file manager and app catalog use.

Why

This lets Lua scripts boot other firmware (e.g. retro-go cores) and pass a ROM
path to them, which makes it possible to write a launcher app entirely in Lua.

Changes

  • src/apps/lua/lualilka_util.cpp
    • include keira/keira.h
    • add lualilka_util_multiboot
    • register {"multiboot", lualilka_util_multiboot} in the util table

Usage

util.multiboot("/sd/apps/retro-core.bin", "rg /sd/roms/nes/game.nes")

UA: Додає Lua-функцію util.multiboot(binPath, args): записує параметри
командного рядка через setCMDParams і запускає .bin через стандартний
обробник Keira. Дозволяє писати лаунчер прошивок повністю на Lua.

Adds util.multiboot(binPath, args) — sets RTC cmd params and launches a .bin via Keira's bin handler
@black-ghost-off
black-ghost-off merged commit 8a7e847 into lilka-dev:main Nov 3, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants