Remove unused l_get_video_drivers in ModApiMainMenu
This commit is contained in:
parent
bb026137e7
commit
f766463b3c
@ -105,11 +105,6 @@ of manually putting one, as different OSs use different delimiters. E.g.
|
|||||||
* `spec` = `SimpleSoundSpec` (see `lua_api.md`)
|
* `spec` = `SimpleSoundSpec` (see `lua_api.md`)
|
||||||
* `looped` = bool
|
* `looped` = bool
|
||||||
* `handle:stop()` or `core.sound_stop(handle)`
|
* `handle:stop()` or `core.sound_stop(handle)`
|
||||||
* `core.get_video_drivers()`
|
|
||||||
* get list of video drivers supported by engine (not all modes are guaranteed to work)
|
|
||||||
* returns list of available video drivers' settings name and 'friendly' display name
|
|
||||||
e.g. `{ {name="opengl", friendly_name="OpenGL"}, {name="software", friendly_name="Software Renderer"} }`
|
|
||||||
* first element of returned list is guaranteed to be the NULL driver
|
|
||||||
* `core.get_mapgen_names([include_hidden=false])` -> table of map generator algorithms
|
* `core.get_mapgen_names([include_hidden=false])` -> table of map generator algorithms
|
||||||
registered in the core (possible in async calls)
|
registered in the core (possible in async calls)
|
||||||
* `core.get_cache_path()` -> path of cache
|
* `core.get_cache_path()` -> path of cache
|
||||||
|
@ -875,27 +875,6 @@ int ModApiMainMenu::l_download_file(lua_State *L)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
int ModApiMainMenu::l_get_video_drivers(lua_State *L)
|
|
||||||
{
|
|
||||||
auto drivers = RenderingEngine::getSupportedVideoDrivers();
|
|
||||||
|
|
||||||
lua_newtable(L);
|
|
||||||
for (u32 i = 0; i != drivers.size(); i++) {
|
|
||||||
auto &info = RenderingEngine::getVideoDriverInfo(drivers[i]);
|
|
||||||
|
|
||||||
lua_newtable(L);
|
|
||||||
lua_pushstring(L, info.name.c_str());
|
|
||||||
lua_setfield(L, -2, "name");
|
|
||||||
lua_pushstring(L, info.friendly_name.c_str());
|
|
||||||
lua_setfield(L, -2, "friendly_name");
|
|
||||||
|
|
||||||
lua_rawseti(L, -2, i + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
int ModApiMainMenu::l_get_language(lua_State *L)
|
int ModApiMainMenu::l_get_language(lua_State *L)
|
||||||
{
|
{
|
||||||
@ -1096,7 +1075,6 @@ void ModApiMainMenu::Initialize(lua_State *L, int top)
|
|||||||
API_FCT(show_path_select_dialog);
|
API_FCT(show_path_select_dialog);
|
||||||
API_FCT(download_file);
|
API_FCT(download_file);
|
||||||
API_FCT(get_language);
|
API_FCT(get_language);
|
||||||
API_FCT(get_video_drivers);
|
|
||||||
API_FCT(get_window_info);
|
API_FCT(get_window_info);
|
||||||
API_FCT(get_active_renderer);
|
API_FCT(get_active_renderer);
|
||||||
API_FCT(get_active_irrlicht_device);
|
API_FCT(get_active_irrlicht_device);
|
||||||
|
@ -127,8 +127,6 @@ private:
|
|||||||
|
|
||||||
static int l_download_file(lua_State *L);
|
static int l_download_file(lua_State *L);
|
||||||
|
|
||||||
static int l_get_video_drivers(lua_State *L);
|
|
||||||
|
|
||||||
//version compatibility
|
//version compatibility
|
||||||
static int l_get_min_supp_proto(lua_State *L);
|
static int l_get_min_supp_proto(lua_State *L);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user