deploy: 1c90c6cf04
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
local args = {...}
|
||||
local basaltPath = fs.getDir(args[2])
|
||||
|
||||
local defaultPath = package.path
|
||||
local format = "path;/path/?.lua;/path/?/init.lua;"
|
||||
|
||||
local main = format:gsub("path", basaltPath)
|
||||
package.path = main.."rom/?"
|
||||
|
||||
local function errorHandler(err)
|
||||
local errorManager = require("errorManager")
|
||||
errorManager.header = "Basalt Loading Error"
|
||||
errorManager.error(err)
|
||||
end
|
||||
|
||||
local ok, result = pcall(require, "main")
|
||||
|
||||
package.path = defaultPath
|
||||
if not ok then
|
||||
errorHandler(result)
|
||||
else
|
||||
return result
|
||||
end
|
||||
Reference in New Issue
Block a user