aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_server.h
diff options
context:
space:
mode:
authorJude Melton-Houghton <jwmhjwmh@gmail.com>2022-11-28 07:21:43 -0500
committerGitHub <noreply@github.com>2022-11-28 07:21:43 -0500
commitd0a118f5b1a2cada1d46d4acac55a998e268154d (patch)
tree72e38e81f8f9ef0d89a6deafa74daa6a261ad49e /src/script/lua_api/l_server.h
parent3fd5bff128cacb068c0758d0b33b425dc88beed7 (diff)
downloadminetest-d0a118f5b1a2cada1d46d4acac55a998e268154d.tar.xz
Add `minetest.get_game_info` and allow reading `game.conf` (#12989)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/script/lua_api/l_server.h')
-rw-r--r--src/script/lua_api/l_server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_server.h b/src/script/lua_api/l_server.h
index a4f38c34e..15d61669e 100644
--- a/src/script/lua_api/l_server.h
+++ b/src/script/lua_api/l_server.h
@@ -52,6 +52,9 @@ private:
// the returned list is sorted alphabetically for you
static int l_get_modnames(lua_State *L);
+ // get_game_info()
+ static int l_get_game_info(lua_State *L);
+
// print(text)
static int l_print(lua_State *L);