Repository navigation
Add util.multiboot() to Lua API - #152
Merged
Merged
Conversation
Adds util.multiboot(binPath, args) — sets RTC cmd params and launches a .bin via Keira's bin handler
frostmorn
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a new Lua function
util.multiboot(binPath, args)to theutilmodule.It sets the kernel command-line parameters via
lilka::multiboot.setCMDParams(args)and launches the given
.binthrough 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.cppkeira/keira.hlualilka_util_multiboot{"multiboot", lualilka_util_multiboot}in theutiltableUsage
UA: Додає Lua-функцію
util.multiboot(binPath, args): записує параметрикомандного рядка через
setCMDParamsі запускає.binчерез стандартнийобробник Keira. Дозволяє писати лаунчер прошивок повністю на Lua.