e
This commit is contained in:
1 parent
5111182a4b
commit
abd573f686
64 files changed
+2407
-157
No files matched your search
@@ -0,0 +1,19 @@
|
||||
local object = {}
|
||||
local file = fs.open("/computers/0/bios.lua", "r")
|
||||
local bios = file.readAll()
|
||||
file.close()
|
||||
|
||||
function object.getData()
|
||||
return bios
|
||||
end
|
||||
|
||||
function object.setData(data)
|
||||
bios=data
|
||||
end
|
||||
|
||||
function object.saveData()
|
||||
local file=fs.open("/bios.lua", "w")
|
||||
file.write(bios)
|
||||
end
|
||||
|
||||
newComponent("bios", object)
|
||||
Reference in new issue
Block a user