2017-02-15 04:35:06 +01:00
|
|
|
-- storage/init.lua
|
|
|
|
|
|
|
|
local module_path = microexpansion.get_module_path("storage")
|
|
|
|
|
2019-05-04 13:53:49 +02:00
|
|
|
microexpansion.require_module("network")
|
|
|
|
|
2017-02-23 16:35:42 +01:00
|
|
|
-- Load API
|
|
|
|
dofile(module_path.."/api.lua")
|
|
|
|
|
2017-02-15 04:35:06 +01:00
|
|
|
-- Load storage devices
|
|
|
|
dofile(module_path.."/storage.lua")
|
|
|
|
|
|
|
|
-- Load machines
|
2019-05-07 17:49:26 +02:00
|
|
|
dofile(module_path.."/drive.lua")
|
2020-03-01 08:23:39 +01:00
|
|
|
dofile(module_path.."/terminal.lua")
|
2023-12-31 00:52:43 +01:00
|
|
|
dofile(module_path.."/cterminal.lua")
|
2023-12-31 22:17:47 +01:00
|
|
|
dofile(module_path.."/cmonitor.lua")
|
2023-12-31 00:52:43 +01:00
|
|
|
dofile(module_path.."/interface.lua")
|
2024-01-07 00:03:22 +01:00
|
|
|
dofile(module_path.."/remote.lua")
|
2024-01-06 19:01:12 +01:00
|
|
|
|
2023-12-31 00:52:43 +01:00
|
|
|
local drawers_enabled = minetest.get_modpath("drawers") and true or false
|
|
|
|
if drawers_enabled then
|
|
|
|
dofile(module_path.."/drawer-api.lua") -- Extra Drawer api
|
|
|
|
dofile(module_path.."/drawer-interop.lua")
|
|
|
|
end
|
|
|
|
local technic_enabled = minetest.get_modpath("technic") and true or false
|
|
|
|
if technic_enabled then
|
|
|
|
dofile(module_path.."/technic-interop.lua")
|
|
|
|
end
|
|
|
|
local pipeworks_enabled = minetest.get_modpath("pipeworks") and true or false
|
|
|
|
if pipeworks_enabled then
|
|
|
|
dofile(module_path.."/pipeworks-interop.lua")
|
|
|
|
end
|