projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c62a121
)
Update Lua API documentation to include minetest.get_modnames()
author
Matthew I
<matttpt@gmail.com>
Sun, 22 Jul 2012 01:45:09 +0000
(21:45 -0400)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 22 Jul 2012 10:36:17 +0000
(13:36 +0300)
doc/lua_api.txt
patch
|
blob
|
history
diff --git
a/doc/lua_api.txt
b/doc/lua_api.txt
index 0f91d38949f6ca96358ae0c41fb66e6ae2c85448..d5797d17193a4936c632c8221b1d1a6ef89df566 100644
(file)
--- a/
doc/lua_api.txt
+++ b/
doc/lua_api.txt
@@
-718,6
+718,8
@@
minetest namespace reference
minetest.get_current_modname() -> string
minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
^ Useful for loading additional .lua modules or static data from mod
+minetest.get_modnames() -> list of installed mods
+^ Return a list of installed mods, sorted alphabetically
minetest.get_worldpath() -> eg. "/home/user/.minetest/world"
^ Useful for storing custom data
minetest.is_singleplayer()