Posted 06 August 2015 - 07:10 PM
this program seems to work fine, but shell.run won't work, any idea why?
sorry for the crappy formatting
and yes, the file is there, and is in the base directory, and ive also tried putting it in the only other dir on the computer
sorry for the crappy formatting
function process(dir)
local a = dir:sub(1,1)
if a == "/" then
fPath="/emu"..dir
else
fPath="/emu/"..dir
end
return fPath
end
ofsopen = fs.open
pocket = true
ofsexists = fs.exists
ofsisDir = fs.isDir
ofsisReadOnly = fs.isReadOnly
ofsgetName = fs.getName
ofsgetDrive = fs.getDrive
ofsgetSize = fs.getSize
ofsgetFreeSpace = fs.getFreeSpace
ofsmakeDir = fs.makeDir
ofsmove = fs.move
ofscopy = fs.copy
ofsdelete = fs.delete
ofsopen = fs.open
ofsgetDir = fs.getDir
fs.open=function(fn,fm)
b = process(fn)
return ofsopen(b,fm)
end
shell.run("n")
edit: it says "file not found"and yes, the file is there, and is in the base directory, and ive also tried putting it in the only other dir on the computer
Edited on 06 August 2015 - 05:19 PM