CSM: Remove screenshot API
authorred-001 <red-001@outlook.ie>
Fri, 19 Jan 2018 16:18:16 +0000 (16:18 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 23 Jan 2018 05:27:38 +0000 (05:27 +0000)
Reverted from commit 19960e26c672c6337f8c6ffbe27f2c6bca49750c
(* [CSM] add screenshot api lua)

doc/client_lua_api.txt
src/script/lua_api/l_client.cpp
src/script/lua_api/l_client.h

index 31142cae2bb6f9b17e6adfb98f1a5ff84dcb5da5..5651898aacc8b02c58d9f8f28d008060cb4ca8d9 100644 (file)
@@ -763,8 +763,6 @@ Call these functions only at load time!
 * `minetest.disconnect()`
     * Disconnect from the server and exit to main menu.
     * Returns `false` if the client is already disconnecting otherwise returns `true`.
-* `minetest.take_screenshot()`
-    * Take a screenshot.
 * `minetest.get_server_info()`
     * Returns [server info](#server-info).
 * `minetest.send_respawn()`
index 4e08c15d4d03c223d9724b858d304616955941ab..230cbe7a218c508dc83d159d9128a415031f1491 100644 (file)
@@ -330,13 +330,6 @@ int ModApiClient::l_get_node_def(lua_State *L)
        return 1;
 }
 
-int ModApiClient::l_take_screenshot(lua_State *L)
-{
-       Client *client = getClient(L);
-       client->makeScreenshot();
-       return 0;
-}
-
 int ModApiClient::l_get_privilege_list(lua_State *L)
 {
        const Client *client = getClient(L);
@@ -377,7 +370,6 @@ void ModApiClient::Initialize(lua_State *L, int top)
        API_FCT(get_server_info);
        API_FCT(get_item_def);
        API_FCT(get_node_def);
-       API_FCT(take_screenshot);
        API_FCT(get_privilege_list);
        API_FCT(get_builtin_path);
        API_FCT(get_language);
index b0ece72052502da62902ee871fb1b37c429bbbff..0d3e6b1069efb1defc656af1686bedccccdeaa53 100644 (file)
@@ -87,9 +87,6 @@ private:
        // get_node_def(nodename)
        static int l_get_node_def(lua_State *L);
 
-       // take_screenshot()
-       static int l_take_screenshot(lua_State *L);
-
        // get_privilege_list()
        static int l_get_privilege_list(lua_State *L);