aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-11 16:49:40 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-11 16:49:40 +0200
commitbd21f00f0a1bb23d4503d58a502a796dbe3fd5b4 (patch)
treeba1e29a21fafe612bdb05bd2a5bfbf8466f92ee0 /data
parent012bcbcb4852c78e803485a4fc6fe6628ce0dcd3 (diff)
downloadminetest-bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4.tar.gz
minetest-bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4.tar.bz2
minetest-bd21f00f0a1bb23d4503d58a502a796dbe3fd5b4.zip
Add minetest.get_modpath(modname)
Diffstat (limited to 'data')
-rw-r--r--data/mods/default/init.lua1
-rw-r--r--data/mods/experimental/init.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 782eba5a5..95d9c19ff 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -110,6 +110,7 @@
-- minetest.chat_send_all(text)
-- minetest.chat_send_player(name, text)
-- minetest.get_player_privs(name) -> set of privs
+-- minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
--
-- stackstring_take_item(stackstring) -> stackstring, item
-- stackstring_put_item(stackstring, item) -> stackstring, success
diff --git a/data/mods/experimental/init.lua b/data/mods/experimental/init.lua
index 6b82b02a2..d180d4778 100644
--- a/data/mods/experimental/init.lua
+++ b/data/mods/experimental/init.lua
@@ -405,4 +405,6 @@ minetest.register_abm({
end,
})--]]
+print("experimental modpath="..dump(minetest.get_modpath("experimental")))
+-- END