2021-11-13 08:31:32 +00:00
|
|
|
local aurora = _G["Aurora"] or {}
|
|
|
|
_G["Aurora"] = aurora
|
|
|
|
|
|
|
|
function auFetchGlobal(name)
|
|
|
|
local ret = aurora[name] or {}
|
|
|
|
aurora[name] = ret
|
|
|
|
return ret
|
|
|
|
end
|
|
|
|
|
|
|
|
function auSetDefault(table, key, default)
|
2023-08-25 13:13:44 +00:00
|
|
|
if (table[key] == nil) then
|
2021-11-13 08:31:32 +00:00
|
|
|
table[key] = default
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
if (auFetchGlobal("Configured") == "true") then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
aurora.Configured = "true"
|
|
|
|
|
|
|
|
-- add configuration
|
|
|
|
require("settings")
|
|
|
|
|
|
|
|
-- add utilities
|
|
|
|
require("./../Utilities")
|
|
|
|
|
|
|
|
--- update paths
|
|
|
|
require("paths")
|
|
|
|
|
|
|
|
-- add internal api
|
|
|
|
require("groups")
|
|
|
|
|
|
|
|
-- add api objects
|
|
|
|
require("objects")
|
|
|
|
|
|
|
|
-- add public api
|
|
|
|
require("api")
|