mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-10 23:53:34 -05:00
13 lines
208 B
Lua
13 lines
208 B
Lua
|
function loadfile(p)
|
||
|
local f = fs.open(p,"rb")
|
||
|
local c = f:read("*a")
|
||
|
f:close()
|
||
|
return load(c,p,"t")
|
||
|
end
|
||
|
function runfile(p,...)
|
||
|
loadfile(p)(...)
|
||
|
end
|
||
|
function spawnfile(p,n)
|
||
|
os.spawn(loadfile(p),n)
|
||
|
end
|