2016-01-05 15:11:13 -08:00
|
|
|
digistuff = {}
|
2015-12-15 12:42:58 -08:00
|
|
|
|
2018-11-24 13:56:29 -08:00
|
|
|
local components = {
|
2019-05-27 16:28:00 -07:00
|
|
|
"internal",
|
|
|
|
"conductors",
|
2018-11-24 13:56:29 -08:00
|
|
|
"touchscreen",
|
|
|
|
"light",
|
|
|
|
"noteblock",
|
|
|
|
"camera",
|
2019-06-02 00:55:42 -07:00
|
|
|
"switches",
|
2018-11-24 13:56:29 -08:00
|
|
|
"panel",
|
|
|
|
"piezo",
|
|
|
|
"detector",
|
2018-11-24 19:00:18 -08:00
|
|
|
"piston",
|
2019-06-01 14:50:42 -07:00
|
|
|
"timer",
|
2020-03-27 23:31:12 -07:00
|
|
|
"cardreader",
|
2020-04-29 22:44:04 -07:00
|
|
|
"channelcopier",
|
2020-05-02 21:58:34 -07:00
|
|
|
"controller",
|
2021-01-26 13:44:07 -08:00
|
|
|
"memory",
|
|
|
|
"gpu",
|
2021-01-29 19:22:58 -08:00
|
|
|
"sillystuff",
|
2021-02-05 18:09:30 -08:00
|
|
|
"movestone",
|
2022-01-01 17:13:34 -08:00
|
|
|
"lclibraries",
|
2022-01-07 14:51:04 -08:00
|
|
|
"lcdocs",
|
2018-11-24 13:56:29 -08:00
|
|
|
}
|
2019-09-13 12:09:25 -07:00
|
|
|
|
|
|
|
if minetest.get_modpath("mesecons_luacontroller") then table.insert(components,"ioexpander") end
|
|
|
|
|
2018-11-24 13:56:29 -08:00
|
|
|
for _,name in ipairs(components) do
|
|
|
|
dofile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,name))
|
2016-08-10 10:11:32 -07:00
|
|
|
end
|
2018-11-25 13:19:56 -08:00
|
|
|
|
|
|
|
local http = minetest.request_http_api()
|
|
|
|
if not http then
|
2020-04-15 13:32:26 -07:00
|
|
|
minetest.log("warning","digistuff is not allowed to use the HTTP API - digilines NIC will not be available!")
|
|
|
|
minetest.log("warning","If this functionality is desired, please add digistuff to your secure.http_mods setting")
|
2018-11-25 13:19:56 -08:00
|
|
|
else
|
|
|
|
loadfile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,"nic"))(http)
|
|
|
|
end
|