Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin.com/UxF3Muqi
- -- This program check/install the "nft" module
- -- if it's not available.
- -- Installed version come from
- -- cc-tweaked-1.15.2-1.90.0
- function is_module_available()
- local path = "/cc/image/nft.lua"
- if fs.exists("/rom/modules/main"..path) then
- return true
- end
- if fs.exists(path) then
- return true
- end
- return false
- end
- function dl(code, file)
- return shell.run("pastebin get", code, file)
- end
- function install_module()
- dl("ZBJaV1Ci", "/cc/image/nft.lua")
- dl("kbDve0Lz", "/cc/expect.lua")
- end
- if not is_module_available() then
- install_module()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement