fixed fs possibly being nil when os lib is loaded

This commit is contained in:
Florian Nücke 2013-12-07 22:41:59 +01:00
parent 03eedec22a
commit 78e22a0384
2 changed files with 7 additions and 3 deletions

View File

@ -25,9 +25,13 @@ function os.exit()
error("terminated", 0)
end
os.remove = fs.remove
function os.remove(...)
return fs.remove(...)
end
os.rename = fs.rename
function os.rename(...)
return fs.rename(...)
end
function os.sleep(timeout)
checkArg(1, timeout, "number", "nil")

View File

@ -4,7 +4,7 @@
"name": "OpenComputers",
"version": "0.0.0",
"credits" : "Inspired by ComputerCraft",
"authors": ["Florian 'Sangar' Nücke"],
"authors": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer"],
"description": "This mod adds modular computers and robots that can be programmed in Lua.",
"logoFile" : "assets/opencomputers/textures/gui/logo.png"
}