Edit to File Structure Files

This commit is contained in:
Cooldude2606
2018-03-30 20:27:57 +01:00
parent bbb4f65e38
commit d56f056073
3 changed files with 7 additions and 12 deletions

View File

@@ -22,6 +22,13 @@ error = function(err)
_error(err)
end
end
-- replaces the base require function
require_return_err = false
_require = require
local function require(path)
local success, err = pcall(_require,path)
if not success and require_return_err then error(err) end
end
require("mod-gui")
-- loads the stdlib and allows Core Game and Event