Build/Utils/userRequire.lua
Reece 615bcb53b9 Initial commit
Publish a collection of boilerplate and an additional json parser.
This meta build chain as-is should replace a lot of the premake5.lua in the AuroraEngine repo
2021-05-20 13:56:44 +01:00

9 lines
189 B
Lua

function userRequire(path)
local script = getroot() .. "/Build_UserScripts/" .. path
if (not os.isfile(script)) then
return
end
return require(script)
end