Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ]] now to load hdd [[ --
- local _system = {}
- if(fs.isDir("vhd"))then
- fs.delete("vhd")
- end
- local
- -- ]] make all files in _system [[ --
- function loadFiles()
- fs.makeDir("vhd")
- for k, v in pairs(_system) do
- f = fs.open("vhd/"..k,"w")
- f.write(v.content)
- f.close()
- print(k)
- end
- print("VHD Loaded!")
- end
- -- ]] load harddisk [[ --
- local arg = { ... }
- if(#arg < 1)then error("Ussage: loadhdd <vhd>") end
- local vhd = arg[1]
- f = fs.open(vhd,"r")
- _system = textutils.unserialize(f.readAll())
- f.close()
- loadFiles()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement