2024-03-20, 11:01 PM
(2024-03-20, 09:33 PM)nanocodebug Wrote: it would be neat if themes could extend to include icons on SD too (in some future).
the future is now!
Code:
→ lua
Lua 5.4.4 Copyright (C) 1994-2023 Lua.org, PUC-Rio
luarepl 0.10 Copyright (C) 2011-2015 Rob Hoelz
>> cool_file = io.open("/sdcard/file.txt", "w")
>> cool_file:write("i'm gay!")
file (0x3ffb6968)
>> cool_file:close()
true
>> cool_file = io.open("/sdcard/file.txt", "r")
>> cool_file:read()
"i'm gay!"
>>
(it may be slightly unstable atm, as there's a mutex needed to safely touch the sd card, and lua isn't currently acquiring it. also lvgl needs a second leading slash at the start of paths. but still! only very marginal work needed!)