Quick restructuration of files (create sub-init.lua)
This commit is contained in:
parent
a9a4c8c4dc
commit
7ae5bda5ab
24
init.lua
24
init.lua
@ -60,10 +60,6 @@ end
|
||||
|
||||
-- sub files
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
dofile(MP .. "/util/normalize.lua")
|
||||
dofile(MP .. "/util/contact.lua")
|
||||
dofile(MP .. "/util/uuid.lua")
|
||||
dofile(MP .. "/util/time_ago.lua")
|
||||
dofile(MP .. "/chatcommands.lua")
|
||||
dofile(MP .. "/migrate.lua")
|
||||
dofile(MP .. "/hud.lua")
|
||||
@ -71,23 +67,9 @@ dofile(MP .. "/storage.lua")
|
||||
dofile(MP .. "/api.lua")
|
||||
dofile(MP .. "/gui.lua")
|
||||
dofile(MP .. "/onjoin.lua")
|
||||
dofile(MP .. "/ui/mail.lua")
|
||||
dofile(MP .. "/ui/inbox.lua")
|
||||
dofile(MP .. "/ui/outbox.lua")
|
||||
dofile(MP .. "/ui/drafts.lua")
|
||||
dofile(MP .. "/ui/trash.lua")
|
||||
dofile(MP .. "/ui/message.lua")
|
||||
dofile(MP .. "/ui/receivers.lua")
|
||||
dofile(MP .. "/ui/events.lua")
|
||||
dofile(MP .. "/ui/contacts.lua")
|
||||
dofile(MP .. "/ui/edit_contact.lua")
|
||||
dofile(MP .. "/ui/select_contact.lua")
|
||||
dofile(MP .. "/ui/maillists.lua")
|
||||
dofile(MP .. "/ui/edit_maillists.lua")
|
||||
dofile(MP .. "/ui/compose.lua")
|
||||
dofile(MP .. "/ui/options.lua")
|
||||
dofile(MP .. "/ui/settings.lua")
|
||||
dofile(MP .. "/ui/about.lua")
|
||||
-- sub directories
|
||||
dofile(MP .. "/ui/init.lua")
|
||||
dofile(MP .. "/util/init.lua")
|
||||
|
||||
-- migrate storage
|
||||
mail.migrate()
|
||||
|
@ -1,3 +1,23 @@
|
||||
-- sub files
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
dofile(MP .. "/ui/inbox.lua")
|
||||
dofile(MP .. "/ui/outbox.lua")
|
||||
dofile(MP .. "/ui/drafts.lua")
|
||||
dofile(MP .. "/ui/trash.lua")
|
||||
dofile(MP .. "/ui/message.lua")
|
||||
dofile(MP .. "/ui/receivers.lua")
|
||||
dofile(MP .. "/ui/events.lua")
|
||||
dofile(MP .. "/ui/contacts.lua")
|
||||
dofile(MP .. "/ui/edit_contact.lua")
|
||||
dofile(MP .. "/ui/select_contact.lua")
|
||||
dofile(MP .. "/ui/maillists.lua")
|
||||
dofile(MP .. "/ui/edit_maillists.lua")
|
||||
dofile(MP .. "/ui/compose.lua")
|
||||
dofile(MP .. "/ui/options.lua")
|
||||
dofile(MP .. "/ui/settings.lua")
|
||||
dofile(MP .. "/ui/about.lua")
|
||||
|
||||
-- helper function for tabbed overview
|
||||
|
||||
function mail.show_mail_menu(playername, sortfield, sortdirection, filter)
|
6
util/init.lua
Normal file
6
util/init.lua
Normal file
@ -0,0 +1,6 @@
|
||||
-- sub files
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
dofile(MP .. "/util/normalize.lua")
|
||||
dofile(MP .. "/util/contact.lua")
|
||||
dofile(MP .. "/util/uuid.lua")
|
||||
dofile(MP .. "/util/time_ago.lua")
|
Loading…
Reference in New Issue
Block a user