Skip to content
Permalink
Browse files

CSM: Remove screenshot API

Reverted from commit 19960e2
(* [CSM] add screenshot api lua)
  • Loading branch information...
red-001 authored and paramat committed Jan 19, 2018
1 parent d6050be commit 0425c6b8c888d0ccdf09a371a7415c8b3cb055a3
Showing with 0 additions and 13 deletions.
  1. +0 −2 doc/client_lua_api.txt
  2. +0 −8 src/script/lua_api/l_client.cpp
  3. +0 −3 src/script/lua_api/l_client.h
@@ -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()`
@@ -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);
@@ -87,9 +87,6 @@ class ModApiClient : public ModApiBase
// 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);

0 comments on commit 0425c6b

Please sign in to comment.
You can’t perform that action at this time.