frostos works

This commit is contained in:
2026-05-01 14:44:15 +03:00
parent 6834318639
commit 2b09e5a4f0
2 changed files with 9 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
# For MVP functionality
- fix coloring issue in UlOS 2 beta 5 (and in OpenOS `dmesg`, it appears color-mapper is wrong)
- fix FrostOS crash due to empty syscalls table (unsure what is happening)
- make `computer` component use callbacks
- make a lot of stuff which likely will need to be indirect actually be indirect (modem comms, computer funcs)
- make beeps, power, etc. be callbacks on one shared local state (computer environment)

View File

@@ -286,7 +286,13 @@ sandbox = {
rawlen = rawlen,
rawset = rawset,
select = select,
setmetatable = setmetatable,
setmetatable = function(t, meta)
if type(meta) == "table" then
-- nope
rawset(meta, "__gc", nil)
end
return setmetatable(t, meta)
end,
tonumber = tonumber,
tostring = tostring,
type = type,
@@ -308,8 +314,8 @@ sandbox = {
debug = {
getinfo = debug.getinfo,
traceback = debug.traceback,
getlocal = debug.getlocal,
getupvalue = debug.getupvalue,
getlocal = function(...) return (debug.getlocal(...)) end,
getupvalue = function(...) return (debug.getupvalue(...)) end,
print = debug.print,
},