frostos works
This commit is contained in:
1
TODO.md
1
TODO.md
@@ -1,7 +1,6 @@
|
|||||||
# For MVP functionality
|
# For MVP functionality
|
||||||
|
|
||||||
- fix coloring issue in UlOS 2 beta 5 (and in OpenOS `dmesg`, it appears color-mapper is wrong)
|
- 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 `computer` component use callbacks
|
||||||
- make a lot of stuff which likely will need to be indirect actually be indirect (modem comms, computer funcs)
|
- 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)
|
- make beeps, power, etc. be callbacks on one shared local state (computer environment)
|
||||||
|
|||||||
@@ -286,7 +286,13 @@ sandbox = {
|
|||||||
rawlen = rawlen,
|
rawlen = rawlen,
|
||||||
rawset = rawset,
|
rawset = rawset,
|
||||||
select = select,
|
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,
|
tonumber = tonumber,
|
||||||
tostring = tostring,
|
tostring = tostring,
|
||||||
type = type,
|
type = type,
|
||||||
@@ -308,8 +314,8 @@ sandbox = {
|
|||||||
debug = {
|
debug = {
|
||||||
getinfo = debug.getinfo,
|
getinfo = debug.getinfo,
|
||||||
traceback = debug.traceback,
|
traceback = debug.traceback,
|
||||||
getlocal = debug.getlocal,
|
getlocal = function(...) return (debug.getlocal(...)) end,
|
||||||
getupvalue = debug.getupvalue,
|
getupvalue = function(...) return (debug.getupvalue(...)) end,
|
||||||
print = debug.print,
|
print = debug.print,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user