Changed API path

This commit is contained in:
LDDestroier 2019-04-18 18:19:42 -04:00 committed by GitHub
parent 7555a48ccf
commit 9fd9a977b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
local getAPI = function(apiname, apipath, apiurl, doDoFile, doScroll)
apipath = fs.combine(fs.getDir(shell.getRunningProgram()), apipath)
apipath = fs.combine(".roterm-api", apipath)
if (not fs.exists(apipath)) then
if doScroll then term.scroll(1) end
print(apiname .. " API not found! Downloading...")
@ -29,7 +29,7 @@ local getAPI = function(apiname, apipath, apiurl, doDoFile, doScroll)
end
end
local nfte = getAPI("NFT Extra", "nfte.lua", "https://github.com/LDDestroier/NFT-Extra/raw/master/nfte.lua", true)
local nfte = getAPI("NFT Extra", "nfte.lua", "https://github.com/LDDestroier/NFT-Extra/raw/master/nfte.lua", true)
local lddterm = getAPI("LDDTerm", "lddterm.lua", "https://github.com/LDDestroier/CC/raw/master/lddterm-cc.lua", true)
local scr_x, scr_y = term.getSize()