mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-08-06 21:49:27 +00:00
Kaj's idea, and better than restoring the deleted native pages: the Lua host already had the mechanism. luaAppLaunchFile() is file-first with an embedded fallback — it just never had anything seeded into it. gen-lua-builtin.py generates src/ui-touch/lua_builtin.h from out/firmware/apps/, the same .lua the Store serves, as C++ raw strings (Snake, RF Monitor, Airtime; 10 KB). luaStoreScanInstalled() now wraps the filesystem scan and seeds any built-in the scan did not find — after it, so a downloaded copy keeps its own entry and version, and seeding still happens when there is no filesystem at all. Tiles, the drawer and the Store's Installed list all work through the existing paths; launching passes the embedded source, and a downloaded file still wins. CAP_BUILTIN_LUA_APPS is ON for the V4 only. Flash: V4 85.5% -> 85.8%, T-Deck 75.5% and Pager 78.1% unchanged. No RAM cost. So the V4 now has the apps and all 13 languages out of the box; the only thing it loses without a working Store is browsing for new ones. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>